diff options
author | Daniel Francis <francis@sugarlabs.org> | 2013-08-05 02:16:41 (GMT) |
---|---|---|
committer | Daniel Francis <francis@sugarlabs.org> | 2013-08-05 02:16:41 (GMT) |
commit | 5d9e5f7c8869b1ef1c3c2a9db4a9f49dcf641c80 (patch) | |
tree | 9dbbcf581a996c99c8de97f23d5010a6eb2b470f | |
parent | 951ebb574bff05b37810b4bfd779a57e8f29f230 (diff) |
Simplify notebook buttonsgtk3
Signed-off-by: Daniel Francis <francis@sugarlabs.org>
-rw-r--r-- | widgets.py | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -37,12 +37,9 @@ class TabAdd(Gtk.Button): add_tab_icon = Icon(icon_name='add') self.props.relief = Gtk.ReliefStyle.NONE self.props.focus_on_click = False - icon_box = Gtk.HBox() - icon_box.pack_start(add_tab_icon, True, False, 0) - self.add(icon_box) + self.add(add_tab_icon) self.connect('clicked', self.__button_clicked_cb) add_tab_icon.show() - icon_box.show() self.show() def __button_clicked_cb(self, button): @@ -121,15 +118,10 @@ class TabLabel(Gtk.HBox): close_tab_icon = Icon(icon_name='close-tab') button = Gtk.Button() - button.props.relief = Gtk.ReliefStyle.NONE - button.props.focus_on_click = False - icon_box = Gtk.HBox() - icon_box.pack_start(close_tab_icon, True, False, 0) - button.add(icon_box) + button.add(close_tab_icon) button.connect('clicked', self.__button_clicked_cb) self.pack_start(button, False, True, 0) close_tab_icon.show() - icon_box.show() button.show() self._close_button = button |