summaryrefslogtreecommitdiffstats
path: root/opensuse/tdebase/improve-panelservicemenu-geticonset.diff
diff options
context:
space:
mode:
authorRobert Xu <robxu9@gmail.com>2011-08-24 17:26:04 -0400
committerRobert Xu <robxu9@gmail.com>2011-08-24 17:26:04 -0400
commit93c66bf8bb8ac0124ae1800cbaaeb814742bfac5 (patch)
tree2551422a7981b35684110fae090223b7a1b6d73f /opensuse/tdebase/improve-panelservicemenu-geticonset.diff
parent425774d7d1d663e08bb06050924f2eeca9147bba (diff)
downloadtde-packaging-93c66bf8bb8ac0124ae1800cbaaeb814742bfac5.tar.gz
tde-packaging-93c66bf8bb8ac0124ae1800cbaaeb814742bfac5.zip
dbus-1-tqt -> libdbus-tqt-1-0 AND tdelibs import (unchanged)
Diffstat (limited to 'opensuse/tdebase/improve-panelservicemenu-geticonset.diff')
-rw-r--r--opensuse/tdebase/improve-panelservicemenu-geticonset.diff32
1 files changed, 32 insertions, 0 deletions
diff --git a/opensuse/tdebase/improve-panelservicemenu-geticonset.diff b/opensuse/tdebase/improve-panelservicemenu-geticonset.diff
new file mode 100644
index 000000000..842976d5a
--- /dev/null
+++ b/opensuse/tdebase/improve-panelservicemenu-geticonset.diff
@@ -0,0 +1,32 @@
+Index: kicker/libkicker/global.cpp
+===================================================================
+--- kicker/libkicker/global.cpp.orig
++++ kicker/libkicker/global.cpp
+@@ -425,6 +425,12 @@ QIconSet menuIconSet(const QString& icon
+ KIcon::ActiveState,
+ 0,
+ true);
++ QPixmap disabled = KGlobal::iconLoader()->loadIcon(icon,
++ KIcon::Small,
++ 0,
++ KIcon::DisabledState,
++ 0,
++ true);
+
+ // make sure they are not larger than 20x20
+ if (normal.width() > 20 || normal.height() > 20)
+@@ -437,8 +443,14 @@ QIconSet menuIconSet(const QString& icon
+ active.convertFromImage(active.convertToImage().smoothScale(20,20));
+ }
+
++ if (disabled.width() > 20 || disabled.height() > 20)
++ {
++ disabled.convertFromImage(disabled.convertToImage().smoothScale(20,20));
++ }
++
+ iconset.setPixmap(normal, QIconSet::Small, QIconSet::Normal);
+ iconset.setPixmap(active, QIconSet::Small, QIconSet::Active);
++ iconset.setPixmap(disabled, QIconSet::Small, QIconSet::Disabled);
+ }
+ }
+