From ec2515f058c60d2478a549f58376db628ba556b9 Mon Sep 17 00:00:00 2001 From: Tim Williams Date: Fri, 14 Oct 2011 13:51:18 +0100 Subject: Initial commit of the Mandriva patches and spec files. This includes the main dependencies and core packages, but very little else. --- .../kdebase/kdebase-3.5.4-fix-gtk-style.patch | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 mandriva/2010.2/kdebase/kdebase-3.5.4-fix-gtk-style.patch (limited to 'mandriva/2010.2/kdebase/kdebase-3.5.4-fix-gtk-style.patch') 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); -- cgit v1.2.1