Commit 33d8141d authored by Boris Pek's avatar Boris Pek

Add debian/patches/fix-loading-config-options:

fix loading of config options. (Closes: #708169)
parent b47ad404
Description: Fix loading of config options
Bug-Debian: http://bugs.debian.org/708169
Author: Boris Pek <tehnick-8@mail.ru>
Last-Update: 2013-05-20
Forwarded: no
--- a/src/abstractappearance.cpp
+++ b/src/abstractappearance.cpp
@@ -48,7 +48,8 @@
{
QMap<QString, QString> ret;
QTextStream flow(device);
- for(QString line = flow.readLine(); !flow.atEnd(); line = flow.readLine()) {
+ for(QString line = flow.readLine(); !flow.atEnd(); ) {
+ line = flow.readLine();
if(valueRx.exactMatch(line))
ret[valueRx.cap(1)] = valueRx.cap(2);
else if(line.startsWith("include \"")) {
--- a/src/appearancegtk2.cpp
+++ b/src/appearancegtk2.cpp
@@ -108,8 +108,8 @@
flow << "gtk-icon-theme-name=\""<< m_settings["icon"] << "\"\n";
flow << "gtk-fallback-icon-theme=\"" << m_settings["icon_fallback"] << "\"\n";
flow << "gtk-toolbar-style=" << m_settings["toolbar_style"] << "\n";
- flow << "gtk-menu-images=" << m_settings["show_icons_buttons"] << "\n";
- flow << "gtk-button-images=" << m_settings["show_icons_menus"] << "\n";
+ flow << "gtk-menu-images=" << m_settings["show_icons_menus"] << "\n";
+ flow << "gtk-button-images=" << m_settings["show_icons_buttons"] << "\n";
//we're done with the ~/.gtk-2.0 file
gtkrc.close();
--- a/src/appearancegtk3.cpp
+++ b/src/appearancegtk3.cpp
@@ -69,8 +69,8 @@
flow3 << "gtk-icon-theme-name="<< m_settings["icon"] << "\n";
flow3 << "gtk-fallback-icon-theme=" << m_settings["icon_fallback"] << "\n";
flow3 << "gtk-toolbar-style=" << m_settings["toolbar_style"] << "\n";
- flow3 << "gtk-menu-images=" << m_settings["show_icons_buttons"] << "\n";
- flow3 << "gtk-button-images=" << m_settings["show_icons_menus"] << "\n";
+ flow3 << "gtk-menu-images=" << m_settings["show_icons_menus"] << "\n";
+ flow3 << "gtk-button-images=" << m_settings["show_icons_buttons"] << "\n";
return true;
}
......@@ -3,7 +3,7 @@ Description: Migration from package src:kcm-gtk
package src:kde-gtk-config. Old configuration file ~/.gtkrc-2.0-kde
is moved to ~/.gtkrc-2.0.
Author: Boris Pek <tehnick-8@mail.ru>
Last-Update: 2012-06-04
Last-Update: 2013-05-19
--- a/src/gtkconfigkcmodule.cpp
+++ b/src/gtkconfigkcmodule.cpp
......
migration-from-package-src:kcm-gtk
fix-loading-config-options
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment