My guess is that the widget is being destroyed somehow and gtk fails to
get the style (doing some code flipping it reported "assertion
`GTK_IS_WIDGET (widget)' failed" - and some segfaults too...)
A workaround is to make an instance of a gtk widget on __init__ and use
that to get the style from.
__init__:
self.w = gtk.DrawingArea() # yeah, it's a hack for get_style to work
on_expose_event:
fg_style, bg_style = self.w.get_style().fg[0], self.w.get_style().bg[0]
probably not the best fix, but at least it keeps the code from crashing. :P
--
quodlibet.py crashed with AttributeError in on_expose_event()
https://bugs.launchpad.net/bugs/225380
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs