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>
This commit is contained in:
Simon Schampijer 2011-11-04 10:43:23 +01:00
parent 9e4a3688fe
commit af4bde1e83

View File

@ -44,9 +44,8 @@ class Notebook(gtk.Notebook):
# Set the 'can-close-tabs' property using **kwargs # Set the 'can-close-tabs' property using **kwargs
# Set True the scrollable notebook property # Set True the scrollable notebook property
gobject.GObject.__init__(self, **kwargs)
self._can_close_tabs = None self._can_close_tabs = None
GObject.GObject.__init__(self, **kwargs)
self.set_scrollable(True) self.set_scrollable(True)
self.show() self.show()