[Sugar-devel] [PATCH] Implode: remove the expander fill after the activity icon

Manuel Quiñones manuq at laptop.org
Fri Sep 2 07:34:44 EDT 2011


This is for consistency with other toolbars.  Decided in the design
meeting of 29 Aug 2011.

Signed-off-by: Manuel Quiñones <manuq at laptop.org>
---
 implodeactivity.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/implodeactivity.py b/implodeactivity.py
index 34f5677..7a13e46 100644
--- a/implodeactivity.py
+++ b/implodeactivity.py
@@ -161,7 +161,7 @@ class ImplodeActivity(Activity):
             toolbar_box.toolbar.insert(activity_button, 0)
             activity_button.show()
 
-            self._add_expander(toolbar_box.toolbar)
+            self._add_expander(toolbar_box.toolbar, expand=False)
 
             toolbar.add(gtk.SeparatorToolItem())
 
@@ -229,12 +229,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()
 
-- 
1.7.4.4



More information about the Sugar-devel mailing list