Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-08-29 12:04:46 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-08-29 12:04:46 (GMT)
commit710f3eba00182094be29206696f3f9bef174269c (patch)
treee88101801e3db975c49e91a72ff750c59aa759a2 /shell
parent0512ae58537a4790a635c1e7cc1f095f34af95b3 (diff)
Tray size allocation fixes.
Diffstat (limited to 'shell')
-rw-r--r--shell/view/frame/ActivitiesBox.py5
-rw-r--r--shell/view/frame/frame.py2
2 files changed, 3 insertions, 4 deletions
diff --git a/shell/view/frame/ActivitiesBox.py b/shell/view/frame/ActivitiesBox.py
index affd34d..9911aff 100644
--- a/shell/view/frame/ActivitiesBox.py
+++ b/shell/view/frame/ActivitiesBox.py
@@ -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)
diff --git a/shell/view/frame/frame.py b/shell/view/frame/frame.py
index 2582fe6..e87b939 100644
--- a/shell/view/frame/frame.py
+++ b/shell/view/frame/frame.py
@@ -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