Alert: fix for traceback in the draw - SL #4251

The Gtk.StyleContext get_background_color method needs a
Gtk.StateFlags as a parameter.  Feeding it with a GtkStateType doesn't
work anymore in recent gtk+.

Signed-off-by: Manuel Quiñones <[email protected]>
Acked-by: Simon Schampijer <[email protected]>
This commit is contained in:
Manuel Quiñones
2012-11-22 14:20:27 -03:00
parent 936ebaa382
commit 9c230ea498
+1 -1
View File
@@ -370,7 +370,7 @@ class _TimeoutIcon(Gtk.Alignment):
radius = w / 2
context.arc(x, y, radius, 0, 2 * math.pi)
widget_style = self.get_style_context()
color = widget_style.get_background_color(self.get_state())
color = widget_style.get_background_color(self.get_state_flags())
context.set_source_rgb(color.red, color.green, color.blue)
context.fill_preserve()