summaryrefslogtreecommitdiffstats
path: root/mandriva/2010.2/kdebase/kdebase-3.5.4-fix-gtk-style.patch
diff options
context:
space:
mode:
authoralbator <[email protected]>2011-10-21 20:16:07 +0200
committeralbator <[email protected]>2011-10-21 20:16:07 +0200
commit7a0adf35896618a7570e425941fc1b74c54def47 (patch)
tree16dab9d8bfbd93575440f357c70907cbb5480980 /mandriva/2010.2/kdebase/kdebase-3.5.4-fix-gtk-style.patch
parentcd71be65dc30c8007ec54becdf6c50260ed8e908 (diff)
parenta8707e2a9f22d082cecb8ea6079175076f983c55 (diff)
downloadtde-packaging-7a0adf35896618a7570e425941fc1b74c54def47.tar.gz
tde-packaging-7a0adf35896618a7570e425941fc1b74c54def47.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tde-packaging
Diffstat (limited to 'mandriva/2010.2/kdebase/kdebase-3.5.4-fix-gtk-style.patch')
-rw-r--r--mandriva/2010.2/kdebase/kdebase-3.5.4-fix-gtk-style.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/mandriva/2010.2/kdebase/kdebase-3.5.4-fix-gtk-style.patch b/mandriva/2010.2/kdebase/kdebase-3.5.4-fix-gtk-style.patch
new file mode 100644
index 000000000..2926d86df
--- /dev/null
+++ b/mandriva/2010.2/kdebase/kdebase-3.5.4-fix-gtk-style.patch
@@ -0,0 +1,24 @@
+--- kdebase-3.5.4/kcontrol/krdb/krdb.cpp-- 2006-09-14 08:38:52.000000000 +0200
++++ kdebase-3.5.4/kcontrol/krdb/krdb.cpp 2006-09-14 08:48:18.000000000 +0200
+@@ -75,13 +75,20 @@
+ // -----------------------------------------------------------------------------
+ static void applyGtkStyles(bool active, int version)
+ {
++ TQString userFile = TQDir::homeDirPath()+userGtkrc(version);
++ KConfig kglobalsStyle("kdeglobals", true, false);
++ kglobalsStyle.setGroup("General");
++ TQString styleName = kglobalsStyle.readEntry("widgetStyle");
++ if(!TQDir(userFile).exists() && styleName =="ia_ora")
++ return;
++
+ TQString gtkkde = locateLocal("config", 2==version?"gtkrc-2.0":"gtkrc");
+ TQCString gtkrc = getenv(gtkEnvVar(version));
+ TQStringList list = TQStringList::split(':', TQFile::decodeName(gtkrc));
+ if (list.count() == 0)
+ {
+ list.append(TQString::fromLatin1(sysGtkrc(version)));
+- list.append(TQDir::homeDirPath()+userGtkrc(version));
++ list.append(userFile);
+ }
+ list.remove(gtkkde);
+ list.append(gtkkde);