Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/view
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-02-28 15:41:50 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-02-28 15:41:50 (GMT)
commit6704e1bfd30580ba3f8b9b36f336f41242e96785 (patch)
treee003c54a8f973357962015b07adc7268e469fd82 /shell/view
parent32ac23ce27a9ce6f26f38b30da22cba6aa98ff19 (diff)
Button fixes and fix launching activities from the clipboard.
Diffstat (limited to 'shell/view')
-rw-r--r--shell/view/clipboardicon.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/shell/view/clipboardicon.py b/shell/view/clipboardicon.py
index caa949a..c8c7692 100644
--- a/shell/view/clipboardicon.py
+++ b/shell/view/clipboardicon.py
@@ -47,13 +47,6 @@ class ClipboardIcon(CanvasIcon):
self.props.xo_color = XoColor("#000000,#424242")
else:
self.props.xo_color = XoColor("#000000,#FFFFFF")
-
- def _activity_create_success_cb(self, handler, activity):
- activity.start(util.unique_id())
- activity.execute("open_document", [self._object_id])
-
- def _activity_create_error_cb(self, handler, err):
- pass
def _open_file(self):
if self._percent < 100 or not self._activity:
@@ -61,10 +54,7 @@ class ClipboardIcon(CanvasIcon):
logging.debug("_icon_activated_cb: " + self._object_id)
- # Launch the activity to handle this item
- handler = activityfactory.create(self._activity)
- handler.connect('success', self._activity_create_success_cb)
- handler.connect('error', self._activity_create_error_cb)
+ activityfactory.create_with_uri(self._activity, self._object_id)
def _icon_activated_cb(self, icon):
self._open_file()