From 2cbc27e4b829df8a1af8087dde7cfaf50fc9aa86 Mon Sep 17 00:00:00 2001 From: Daniel Drake Date: Tue, 05 Jun 2012 00:54:50 +0000 Subject: Restore journal file picker (#3411) The run-file-chooser signal can be used to intercept a request for a file upload and display a custom file chooser. We want to do this to allow the user to upload files from the journal. By default, the standard GTK+ file chooser was being shown. run-file-chooser is present in WebKit2 and has been submitted for final review for inclusion in WebKit1. Signed-off-by: Daniel Drake Acked-by: Manuel QuiƱones --- (limited to 'webtoolbar.py') diff --git a/webtoolbar.py b/webtoolbar.py index 99c5fd6..c24aa87 100644 --- a/webtoolbar.py +++ b/webtoolbar.py @@ -30,8 +30,7 @@ from sugar3.graphics.toolbarbox import ToolbarBox as ToolbarBase from sugar3.activity.widgets import ActivityToolbarButton from sugar3.activity.widgets import StopButton -# FIXME -# import filepicker +import filepicker import places from sugarmenuitem import SugarMenuItem from browser import Browser @@ -429,8 +428,7 @@ class PrimaryToolbar(ToolbarBase): def __uri_changed_cb(self, widget, param): self._set_address(widget.get_uri()) self._update_navigation_buttons() - # FIXME - # filepicker.cleanup_temp_files() + filepicker.cleanup_temp_files() def _stop_and_reload_cb(self, entry, icon_pos, button): if self._loading: -- cgit v0.9.1