diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-04-27 08:51:19 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-04-27 08:51:19 (GMT) |
commit | 9ccda70199c098ea6b45bec059225976cfb3b0d7 (patch) | |
tree | e3ad7f8a0da47eb283f9bb9bb042da395abb9824 /sugar/graphics/toolbox.py | |
parent | 9dcfcf89e96894d32905bfe9bae3e1310a21ae1b (diff) |
Refactor the window API a bit to make it more flexible.
Diffstat (limited to 'sugar/graphics/toolbox.py')
-rw-r--r-- | sugar/graphics/toolbox.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/sugar/graphics/toolbox.py b/sugar/graphics/toolbox.py index 52accbc..9439120 100644 --- a/sugar/graphics/toolbox.py +++ b/sugar/graphics/toolbox.py @@ -33,20 +33,3 @@ class Toolbox(gtk.VBox): def add_toolbar(self, name, toolbar): self._notebook.append_page(toolbar, gtk.Label(name)) - -class ActivityToolbar(gtk.Toolbar): - __gsignals__ = { - 'close': (gobject.SIGNAL_RUN_FIRST, - gobject.TYPE_NONE, ([])), - } - - def __init__(self): - gtk.Toolbar.__init__(self) - - button = ToolButton('window-close') - button.connect('clicked', self._close_button_clicked_cb) - self.insert(button, -1) - button.show() - - def _close_button_clicked_cb(self, button): - self.emit('close') |