summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Niklaus <marex@opencompositing.org>2008-10-08 23:27:05 +0200
committerPatrick Niklaus <marex@opencompositing.org>2008-10-08 23:27:05 +0200
commit28331749466c93b2b1467c213597993dc14ccd64 (patch)
tree5dffedb630a4c69c8a14ac811250e806a31c44db
parent60eae4e66cfcc44fc5f2a9ec19434627e8d54bcc (diff)
downloadccsm-28331749466c93b2b1467c213597993dc14ccd64.tar.gz
ccsm-28331749466c93b2b1467c213597993dc14ccd64.tar.bz2
Fix text color for NewHumanTheme, closes bug 1025.
-rw-r--r--ccm/Widgets.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/ccm/Widgets.py b/ccm/Widgets.py
index 5c10554..40a8c33 100644
--- a/ccm/Widgets.py
+++ b/ccm/Widgets.py
@@ -1378,6 +1378,7 @@ class PluginButton (gtk.HBox):
image = Image (plugin.Name, ImagePlugin, size=32)
label = Label (plugin.ShortDesc, 120)
+ label.connect ('style-set', self.style_set)
box = gtk.HBox ()
box.set_spacing (5)
box.pack_start (image, False, False)
@@ -1400,6 +1401,15 @@ class PluginButton (gtk.HBox):
self.set_size_request (220, -1)
+ StyleBlock = 0
+
+ def style_set (self, widget, previous):
+ if self.StyleBlock > 0:
+ return
+ self.StyleBlock += 1
+ widget.modify_fg(gtk.STATE_NORMAL, widget.style.text[gtk.STATE_NORMAL])
+ self.StyleBlock -= 1
+
def enable_plugin (self, widget):
plugin = self._plugin