From 435908ec44e82d19c371cc66ff3c2a6ea77b77be Mon Sep 17 00:00:00 2001 From: Clement Lefebvre Date: Tue, 26 Oct 2010 13:59:17 +0100 Subject: [PATCH] Don't change color of highlighted apps, simply use bold chars. --- debian/changelog | 6 ++++++ .../linuxmint/mintMenu/plugins/easybuttons.py | 18 +++++++++++------- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/debian/changelog b/debian/changelog index 6764459..7190f0d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +mintmenu (5.1.6) julia; urgency=low + + * Highlighted apps now appear in bold, as opposed to using the fg[gtk.SELECTED] color (to avoid white on white issues with certain themes) + + -- Clement Lefebvre Tue, 26 Oct 2010 13:57:00 +0000 + mintmenu (5.1.5) julia; urgency=low * Faster initialization diff --git a/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py b/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py index 5712ccc..8c7020b 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py +++ b/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py @@ -490,13 +490,17 @@ class MenuApplicationLauncher( ApplicationLauncher ): appComment = self.appComment if self.highlight: try: - color = self.labelBox.rc_get_style().fg[ gtk.STATE_SELECTED ].to_string() - if len(color) > 0 and color[0] == "#": - appName = "%s" % (color, appName); - appComment = "%s" % (color, appComment); - else: - appName = "%s" % (appName); - appComment = "%s" % (appComment); + #color = self.labelBox.rc_get_style().fg[ gtk.STATE_SELECTED ].to_string() + #if len(color) > 0 and color[0] == "#": + #appName = "%s" % (color, appName); + #appComment = "%s" % (color, appComment); + #appName = "%s" % (appName); + #appComment = "%s" % (appComment); + #else: + #appName = "%s" % (appName); + #appComment = "%s" % (appComment); + appName = "%s" % (appName); + appComment = "%s" % (appComment); except Exception, detail: print detail pass