diff options
author | Simon Schampijer <simon@schampijer.de> | 2011-11-04 09:43:23 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2011-12-13 20:19:52 (GMT) |
commit | af4bde1e83e9d7af36aa75f4115a67c98a905204 (patch) | |
tree | 9bd51c712aaf435e775ef0a9cc92ec469ebd9ddf | |
parent | 9e4a3688fe3afa01016a53eed008af2627c78693 (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() |