diff options
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | browser.py | 12 |
2 files changed, 10 insertions, 3 deletions
@@ -1,3 +1,4 @@ +* #4909: added a dbus call to open the source data by the journal (marco) * #4889: use the window's fullscreen method to get to fullscreen mode, this does not mess up the state the window manager has (erikos) * #4870: Add onStatusChange method to Download. (tomeu) @@ -18,6 +18,7 @@ import logging from gettext import gettext as _ +import dbus import gobject import gtk import tempfile @@ -143,10 +144,15 @@ class Browser(WebView): def _internal_save_cb(self): logging.debug("Saved source object to datastore.") - id = self._jobject.object_id + object_id = self._jobject.object_id service_name = 'org.laptop.AbiWordActivity' - self._cleanup_jobject() - activityfactory.create_with_object_id(service_name, id) + self._cleanup_jobject() + + bus = dbus.SessionBus() + bus_object = bus.get_object('org.laptop.Journal', + '/org/laptop/Journal') + journal = dbus.Interface(bus_object, 'org.laptop.Journal') + journal.Resume(service_name, object_id) def _internal_save_error_cb(self, err): logging.debug("Error saving source object to datastore: %s" % err) |