Comment 8 for bug 1016212

Revision history for this message
Martin Pitt (pitti) wrote :

Simple workaround:

--- src/gtimelog/main.py
+++ src/gtimelog/main.py
@@ -1054,7 +1054,8 @@
         # not necessarily the case! this logic works for, say,
         # Ambiance/Radiance, but it gets New Wave and Dark Room wrong.
         if toolkit == 'gi':
- style = gtk.MenuBar().get_style_context()
+ m = gtk.MenuBar()
+ style = m.get_style_context()
             color = style.get_color(gtk.StateFlags.NORMAL)
             value = (color.red + color.green + color.blue) / 3
         else: