diff options
author | Manuel Quiñones <manuq@laptop.org> | 2012-10-01 15:29:29 (GMT) |
---|---|---|
committer | Manuel Quiñones <manuq@laptop.org> | 2012-10-02 01:57:05 (GMT) |
commit | 76da9331a43e78c40a2710877c01dccd8bcab5cf (patch) | |
tree | 6288ddc04181f451e3ac3381ff56a92931aa58a3 | |
parent | 9580e057cb272c3acb6f4b6498e6c0c0782a308e (diff) |
Alert: use GtkStyleContext instead of deprecated GtkStyle - SL #3907
Using the deprecated GtkStyle is giving an error [1] in the sugar
alert.
[1] http://bugs.sugarlabs.org/ticket/3907#comment:3
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
-rw-r--r-- | src/sugar3/graphics/alert.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sugar3/graphics/alert.py b/src/sugar3/graphics/alert.py index 16392cd..5a9e2ef 100644 --- a/src/sugar3/graphics/alert.py +++ b/src/sugar3/graphics/alert.py @@ -369,8 +369,8 @@ class _TimeoutIcon(Gtk.Alignment): y = h * 0.5 radius = w / 2 context.arc(x, y, radius, 0, 2 * math.pi) - widget_style = self.get_style() - color = widget_style.bg[self.get_state()] + widget_style = self.get_style_context() + color = widget_style.get_background_color(self.get_state()) context.set_source_rgb(color.red, color.green, color.blue) context.fill_preserve() |