Comment 10 for bug 1016212

Revision history for this message
Barry Warsaw (barry) wrote : Re: [Bug 1016212] Re: gtimelog crashed with SIGSEGV in gtk_style_context_get_valist()

On Jun 22, 2012, at 11:24 AM, Martin Pitt wrote:

>--- 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:

That's gotta be a reference counting bug in pygi.