This commit is contained in:
Marco Pesenti Gritti 2007-11-08 21:18:38 +01:00
parent 3e491c2dc7
commit 1879b9d140
2 changed files with 6 additions and 3 deletions

2
NEWS
View File

@ -1,3 +1,5 @@
Snapshot 3e491c2dc7
* #4715: Filter new items that appear in the mesh view. (tomeu) * #4715: Filter new items that appear in the mesh view. (tomeu)
* #4716: Filter correctly activity icons in the mesh view. (tomeu) * #4716: Filter correctly activity icons in the mesh view. (tomeu)
* Use HOME/.i18n in control panel and reset jabber_registered to False (erikos) * Use HOME/.i18n in control panel and reset jabber_registered to False (erikos)

View File

@ -71,11 +71,12 @@ class HomeModel(gobject.GObject):
self._active_window_changed_cb) self._active_window_changed_cb)
def get_previous_activity(self): def get_previous_activity(self):
i = self._activities.index(self._pending_activity) activities = self._get_started_activities()
i = activities.index(self._pending_activity)
if i > 0: if i > 0:
return self._activities[i - 1] return activities[i - 1]
else: else:
return None return activities[0]
def get_next_activity(self): def get_next_activity(self):
i = self._activities.index(self._pending_activity) i = self._activities.index(self._pending_activity)