diff options
author | Daniel Drake <dsd@laptop.org> | 2012-06-05 00:54:50 (GMT) |
---|---|---|
committer | Manuel QuiƱones <manuq@laptop.org> | 2012-06-14 16:55:51 (GMT) |
commit | 2cbc27e4b829df8a1af8087dde7cfaf50fc9aa86 (patch) | |
tree | f36b8721b79bd178e94603087291e1d9bb901e27 /webtoolbar.py | |
parent | 7b16255c7f71123d17eddb4d2e3e9ea5faff9164 (diff) |
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 <dsd@laptop.org>
Acked-by: Manuel QuiƱones <manuq@laptop.org>
Diffstat (limited to 'webtoolbar.py')
-rw-r--r-- | webtoolbar.py | 6 |
1 files changed, 2 insertions, 4 deletions
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: |