diff options
-rw-r--r-- | src/sugar3/graphics/notebook.py | 5 |
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) |