Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webactivity.py
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2008-11-07 15:26:21 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2008-11-07 15:26:21 (GMT)
commitdf07d3930cb37c315f336938c6dc4edeb0f6c432 (patch)
treeb64fb4dda9000d4c2ed6a4dc1893995fdf7ceebb /webactivity.py
parentd3f4916178e50760b07f2eb1d555fe4046529f0e (diff)
Return the document source to the shell for displaying in the view source dialog
Diffstat (limited to 'webactivity.py')
-rw-r--r--webactivity.py14
1 files changed, 3 insertions, 11 deletions
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)
+