diff options
author | Simon Schampijer <simon@schampijer.de> | 2011-11-04 09:43:23 (GMT) |
---|---|---|
committer | Sascha Silbe <silbe@activitycentral.com> | 2011-11-15 22:26:03 (GMT) |
commit | 052277d8d85604f33d4c19dad9c09ff4d0725c3e (patch) | |
tree | 5e43499aee77f94338b2c6d1d66806609709e81c | |
parent | a192a9ca55c4aeec435211333b58968fcc650b10 (diff) |
Notebook: fix passing can-close-tabs
Make sure can_close_tabs can be passed in as a keyword parameter (to be set
by the GObject constructor).
[split out from another patch]
Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
-rw-r--r-- | src/sugar3/graphics/notebook.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sugar3/graphics/notebook.py b/src/sugar3/graphics/notebook.py index e1cafcc..7fb6b76 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() |