Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorDan Williams <dcbw@wireless-64.media.mit.edu>2007-01-08 22:05:55 (GMT)
committer Dan Williams <dcbw@wireless-64.media.mit.edu>2007-01-08 22:05:55 (GMT)
commit946a8f1b4206d0200a4b9baa0e79894871bfddce (patch)
treea165abfda6bf91f376a2b1feb4121f54574dda29 /shell
parent39e116433c77fbf06fb7a0688f12ceeab6b6c64f (diff)
Misc shell activity launch fixes
also switch to home screen when launching an activity so we can get feedback on launch status
Diffstat (limited to 'shell')
-rw-r--r--shell/view/Shell.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/shell/view/Shell.py b/shell/view/Shell.py
index 40c5c83..ee7dd09 100644
--- a/shell/view/Shell.py
+++ b/shell/view/Shell.py
@@ -183,6 +183,8 @@ class Shell(gobject.GObject):
self._hosts[activity_host.get_xid()] = activity_host
def _activity_removed_cb(self, home_model, home_activity):
+ if not home_activity.get_launched():
+ return
xid = home_activity.get_xid()
if self._hosts.has_key(xid):
self._hosts[xid].destroy()
@@ -277,7 +279,7 @@ class Shell(gobject.GObject):
def _start_error_cb(self, handler, err, home_model, activity_id, activity_type):
logging.error("Couldn't launch activity %s (%s):\n%s" % (activity_id, activity_type, err))
- home_mode.notify_activity_launch_failed(activity_id)
+ home_model.notify_activity_launch_failed(activity_id)
def start_activity(self, activity_type):
logging.debug('Shell.start_activity')
@@ -294,6 +296,9 @@ class Shell(gobject.GObject):
handler.connect('success', self._start_success_cb, act_id, activity_type)
handler.connect('error', self._start_error_cb, home_model, act_id, activity_type)
+ # Zoom to Home for launch feedback
+ self.set_zoom_level(sugar.ZOOM_HOME)
+
def set_zoom_level(self, level):
if level == sugar.ZOOM_ACTIVITY:
self._screen.toggle_showing_desktop(False)