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 09:43:23 (GMT)
committer Simon Schampijer <simon@schampijer.de>2011-11-04 09:43:23 (GMT)
commit6867208f87a2b1746a12156cf1171d962b496001 (patch)
treefc65ee05501e7b151ed9980be4e0a41852e2f77e
parent696a077d43857b022b857808633f57fc051812de (diff)
Notebook: Gtk.icon_size_lookup_for_settings does return a tulple with a bolean and width and height now
Fixed as well the can_close_tabs property, it has been set to None when passing the property to the constructor. http://developer.gnome.org/gtk/stable/gtk-Themeable-Stock-Images.html#gtk-icon-size-lookup-for-settings
-rw-r--r--src/sugar3/graphics/notebook.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sugar3/graphics/notebook.py b/src/sugar3/graphics/notebook.py
index 0d91c1c..57994fa 100644
--- a/src/sugar3/graphics/notebook.py
+++ b/src/sugar3/graphics/notebook.py
@@ -44,9 +44,8 @@ class Notebook(Gtk.Notebook):
# Set the 'can-close-tabs' property using **kwargs
# Set True the scrollable notebook property
- GObject.GObject.__init__(self, **kwargs)
-
self._can_close_tabs = None
+ GObject.GObject.__init__(self, **kwargs)
self.set_scrollable(True)
self.show()
@@ -81,7 +80,7 @@ class Notebook(Gtk.Notebook):
Gtk.Button.set_relief(button, Gtk.ReliefStyle.NONE)
settings = Gtk.Widget.get_settings(button)
- w, h = Gtk.icon_size_lookup_for_settings(settings, Gtk.IconSize.MENU)
+ valid, w, h = Gtk.icon_size_lookup_for_settings(settings, Gtk.IconSize.MENU)
Gtk.Widget.set_size_request(button, w + 4, h + 4)
image.show()
icon_box.pack_start(image, True, False, 0)