Tray size allocation fixes.

This commit is contained in:
Marco Pesenti Gritti
2007-08-29 14:04:46 +02:00
parent 0512ae5853
commit 710f3eba00
3 changed files with 23 additions and 18 deletions
+2 -3
View File
@@ -54,7 +54,7 @@ class ActivitiesBox(hippo.CanvasBox):
self._invites = self._shell_model.get_invites()
self.tray = HTray()
self.append(hippo.CanvasWidget(widget=self.tray))
self.append(hippo.CanvasWidget(widget=self.tray), hippo.PACK_EXPAND)
self.tray.show()
registry = activity.get_registry()
@@ -87,8 +87,7 @@ class ActivitiesBox(hippo.CanvasBox):
self.remove_invite(invite)
def _activity_removed_cb(self, item):
index = self.tray.get_item_index(item)
self.tray.remove_item(index)
self.tray.remove_item(item)
def _activity_added_cb(self, activity_registry, activity_info):
self.add_activity(activity_info)
+1 -1
View File
@@ -222,7 +222,7 @@ class Frame(object):
panel = self._create_panel(gtk.POS_BOTTOM)
box = ActivitiesBox(self._shell)
panel.append(box)
panel.append(box, hippo.PACK_EXPAND)
return panel