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 <marco@localhost.localdomain>2007-01-09 16:55:35 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-01-09 16:55:35 (GMT)
commit429a7ff970cdc0aa32991ff8cf6e17badc30417d (patch)
tree596398968855f76ca61d9bcd0db4364ea0b8bb05 /shell
parent2136ac5046debfd3aaba863ed15ca5b3b2619991 (diff)
Ensure to emit an activity changed signal when closing the last window. Fix #690.
Diffstat (limited to 'shell')
-rw-r--r--shell/model/homemodel.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/model/homemodel.py b/shell/model/homemodel.py
index b1b4c8f..cbc06a9 100644
--- a/shell/model/homemodel.py
+++ b/shell/model/homemodel.py
@@ -71,6 +71,8 @@ class HomeModel(gobject.GObject):
def _window_closed_cb(self, screen, window):
if window.get_window_type() == wnck.WINDOW_NORMAL:
self._remove_activity(window.get_xid())
+ if not self._activities:
+ self.emit('active-activity-changed', None)
def _get_activity_by_xid(self, xid):
for act in self._activities.values():