diff options
author | Sascha Silbe <sascha@silbe.org> | 2009-08-25 17:55:48 (GMT) |
---|---|---|
committer | Sascha Silbe <sascha@silbe.org> | 2009-08-25 17:55:48 (GMT) |
commit | ecdaf6b795550158273ba3a0d582f7ff2bec3187 (patch) | |
tree | 11e289d68827c2db1851482efaa7f64da5af93cb /src/sugar/graphics/notebook.py | |
parent | 6c3fd0346c1876ad501c3c91d50cdf42f7e0a9dc (diff) |
trim EOL (end-of-line) spaces on source files
Diffstat (limited to 'src/sugar/graphics/notebook.py')
-rw-r--r-- | src/sugar/graphics/notebook.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/sugar/graphics/notebook.py b/src/sugar/graphics/notebook.py index 4965b24..65d3522 100644 --- a/src/sugar/graphics/notebook.py +++ b/src/sugar/graphics/notebook.py @@ -17,7 +17,7 @@ """Notebook class -This class create a gtk.Notebook() widget supporting +This class create a gtk.Notebook() widget supporting a close button in every tab when the 'can-close-tabs' gproperty is enabled (True) @@ -38,11 +38,11 @@ class Notebook(gtk.Notebook): def __init__(self, **kwargs): # Initialise the Widget - # - # Side effects: + + # Side effects: # Set the 'can-close-tabs' property using **kwargs # Set True the scrollable notebook property - + gobject.GObject.__init__(self, **kwargs) self._can_close_tabs = None @@ -108,7 +108,7 @@ class Notebook(gtk.Notebook): tab_box.show_all() event_box.add(tab_box) - + return event_box def add_page(self, text_label, widget): @@ -130,16 +130,16 @@ class Notebook(gtk.Notebook): # Add a new page to the notebook if self._can_close_tabs: eventbox = self._create_custom_tab(text_label, widget) - self.append_page(widget, eventbox) + self.append_page(widget, eventbox) else: self.append_page(widget, gtk.Label(text_label)) - + pages = self.get_n_pages() # Set the new page self.set_current_page(pages - 1) self.show_all() - + return True def _close_page(self, button, child): |