diff options
author | Manuel Quiñones <manuq@laptop.org> | 2012-11-20 18:46:33 (GMT) |
---|---|---|
committer | Manuel Quiñones <manuq@laptop.org> | 2012-11-22 17:20:27 (GMT) |
commit | 9c230ea498a710b1f577679717ca1b54dda4e9c8 (patch) | |
tree | 8631643dd42030e43643fb098aaa335c44db1f58 | |
parent | 936ebaa3829722fc4014b1461ef4af4168ed6e3b (diff) |
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 <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
-rw-r--r-- | src/sugar3/graphics/alert.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sugar3/graphics/alert.py b/src/sugar3/graphics/alert.py index 5a9e2ef..6d00924 100644 --- a/src/sugar3/graphics/alert.py +++ b/src/sugar3/graphics/alert.py @@ -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() |