Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/model
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2008-06-07 10:10:22 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2008-06-07 10:10:22 (GMT)
commite623294eaab90af4549e730c1bf038ac29a2682b (patch)
treecb6e14fcf32bb4ec8e87449d94863f9842b3f7dc /src/model
parent438e2df989ced05dbeecba8fc45f166342ab2545 (diff)
Shell service notify launch status directly to the model.
The shell view listen to the model.
Diffstat (limited to 'src/model')
-rw-r--r--src/model/homemodel.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/model/homemodel.py b/src/model/homemodel.py
index cae961e..fa7a635 100644
--- a/src/model/homemodel.py
+++ b/src/model/homemodel.py
@@ -224,7 +224,7 @@ class HomeModel(gobject.GObject):
else:
logging.error('Model for window %d does not exist.' % xid)
- def notify_activity_launch(self, activity_id, service_name):
+ def notify_launch(self, activity_id, service_name):
registry = activity.get_registry()
activity_info = registry.get_activity(service_name)
if not activity_info:
@@ -241,7 +241,7 @@ class HomeModel(gobject.GObject):
# Now just check whether an activity has a window after ~90sec
gobject.timeout_add(90000, self._check_activity_launched, activity_id)
- def notify_activity_launch_failed(self, activity_id):
+ def notify_launch_failed(self, activity_id):
home_activity = self._get_activity_by_id(activity_id)
if home_activity:
logging.debug("Activity %s (%s) launch failed" % \
@@ -259,5 +259,5 @@ class HomeModel(gobject.GObject):
if home_activity and home_activity.props.launching:
logging.debug('Activity %s still launching, assuming it failed...'
% activity_id)
- self.notify_activity_launch_failed(activity_id)
+ self.notify_launch_failed(activity_id)
return False