diff options
author | Manuel Quiñones <manuq@laptop.org> | 2012-02-22 21:42:59 (GMT) |
---|---|---|
committer | Manuel Quiñones <manuq@laptop.org> | 2012-02-22 21:42:59 (GMT) |
commit | 4775bacd5d4e9df362752595f83ea2fded31dcaf (patch) | |
tree | 115fa43b0f16318c2c14bac806bca9856e50351e | |
parent | 18f7f7e45ef5002f7d6b40a08ada2971f9c5d3a5 (diff) |
Remove expanded separators
This is to make all toolbars consistent, as discussed in Design
Meeting and reviewed in 2011-09-26 .
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
-rw-r--r-- | implodeactivity.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/implodeactivity.py b/implodeactivity.py index 34f5677..e989057 100644 --- a/implodeactivity.py +++ b/implodeactivity.py @@ -161,8 +161,6 @@ class ImplodeActivity(Activity): toolbar_box.toolbar.insert(activity_button, 0) activity_button.show() - self._add_expander(toolbar_box.toolbar) - toolbar.add(gtk.SeparatorToolItem()) def add_button(icon_name, tooltip, func): @@ -229,12 +227,12 @@ class ImplodeActivity(Activity): self.set_toolbar_box(toolbar_box) toolbar_box.show() - def _add_expander(self, toolbar): + def _add_expander(self, toolbar, expand=True): """Insert a toolbar item which will expand to fill the available space.""" separator = gtk.SeparatorToolItem() separator.props.draw = False - separator.set_expand(True) + separator.set_expand(expand) toolbar.insert(separator, -1) separator.show() |