Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2011-11-04 08:11:50 (GMT)
committer Simon Schampijer <simon@schampijer.de>2011-11-04 08:19:04 (GMT)
commit280a43dac9a920164d247ca20de889a96a8ca3e0 (patch)
treefa6cac0dbbdd61133f9dbd746a89b0e2a1eb0b4b
parent1733cede44cdc8cbaa0d6682d8f930bdf1ea2998 (diff)
Gtk.icon_size_lookup does return a tulple with a bolean and width and height now
http://developer.gnome.org/gtk/stable/gtk-Themeable-Stock-Images.html#gtk-icon-size-lookup
-rw-r--r--src/sugar3/graphics/alert.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sugar3/graphics/alert.py b/src/sugar3/graphics/alert.py
index f305bc0..8cf1da4 100644
--- a/src/sugar3/graphics/alert.py
+++ b/src/sugar3/graphics/alert.py
@@ -355,11 +355,11 @@ class _TimeoutIcon(Gtk.Alignment):
return False
def do_get_preferred_width(self):
- width = Gtk.icon_size_lookup(Gtk.IconSize.BUTTON)[0]
+ width = Gtk.icon_size_lookup(Gtk.IconSize.BUTTON)[1]
return width, width
def do_get_preferred_height(self):
- height = Gtk.icon_size_lookup(Gtk.IconSize.BUTTON)[1]
+ height = Gtk.icon_size_lookup(Gtk.IconSize.BUTTON)[2]
return height, height
def _draw(self, context):