From df07d3930cb37c315f336938c6dc4edeb0f6c432 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Fri, 07 Nov 2008 15:26:21 +0000 Subject: Return the document source to the shell for displaying in the view source dialog --- (limited to 'webactivity.py') diff --git a/webactivity.py b/webactivity.py index badc6f7..f7f2459 100644 --- a/webactivity.py +++ b/webactivity.py @@ -351,10 +351,6 @@ class WebActivity(activity.Activity): self.toolbox.set_current_toolbar(_TOOLBAR_BROWSE) self._web_toolbar.entry.grab_focus() return True - elif gtk.gdk.keyval_name(event.keyval) == "u": - _logger.debug('keyboard: Show source of the current page') - self._show_source() - return True elif gtk.gdk.keyval_name(event.keyval) == "minus": _logger.debug('keyboard: Zoom out') self._browser.zoom_out() @@ -364,10 +360,6 @@ class WebActivity(activity.Activity): _logger.debug('keyboard: Zoom in') self._browser.zoom_in() return True - elif gtk.gdk.keyval_name(event.keyval) == "XF86Start": - _logger.debug('keyboard: Show source of the current page SHOW_KEY') - self._show_source() - return True return False def _add_link(self): @@ -417,9 +409,6 @@ class WebActivity(activity.Activity): def _link_clicked_cb(self, button, url): ''' an item of the link tray has been clicked ''' self._browser.load_uri(url) - - def _show_source(self): - self._browser.get_source() def _pixbuf_save_cb(self, buf, data): data[0] += buf @@ -473,3 +462,6 @@ class WebActivity(activity.Activity): downloadmanager.remove_all_downloads() self.close(force=True) + def get_document_path(self, async_cb, async_err_cb): + self._browser.get_source(async_cb, async_err_cb) + -- cgit v0.9.1