--- 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:
Simple workaround:
--- src/gtimelog/ main.py main.py ).get_style_ context( ) context( ) color(gtk. StateFlags. NORMAL)
+++ src/gtimelog/
@@ -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(
+ m = gtk.MenuBar()
+ style = m.get_style_
color = style.get_
value = (color.red + color.green + color.blue) / 3
else: