From 9c230ea498a710b1f577679717ca1b54dda4e9c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= Date: Tue, 20 Nov 2012 15:46:33 -0300 Subject: [PATCH] Alert: fix for traceback in the draw - SL #4251 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Acked-by: Simon Schampijer --- src/sugar3/graphics/alert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sugar3/graphics/alert.py b/src/sugar3/graphics/alert.py index 5a9e2ef7..6d009248 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()