diff options
author | Wouter Bolsterlee <wbolster@gnome.org> | 2006-10-15 22:05:40 +0800 |
---|---|---|
committer | Wouter Bolsterlee <wbolster@src.gnome.org> | 2006-10-15 22:05:40 +0800 |
commit | c1e9da9eed75fc314c113000d7fe01e7de1ae913 (patch) | |
tree | 8fe52c695808de3066e5a3652035b0406463f0fe /lib/ephy-file-helpers.c | |
parent | ccb73eb4348e4fb957fe4a2f8ed5ca7eac6835d9 (diff) | |
download | gsoc2013-epiphany-c1e9da9eed75fc314c113000d7fe01e7de1ae913.tar gsoc2013-epiphany-c1e9da9eed75fc314c113000d7fe01e7de1ae913.tar.gz gsoc2013-epiphany-c1e9da9eed75fc314c113000d7fe01e7de1ae913.tar.bz2 gsoc2013-epiphany-c1e9da9eed75fc314c113000d7fe01e7de1ae913.tar.lz gsoc2013-epiphany-c1e9da9eed75fc314c113000d7fe01e7de1ae913.tar.xz gsoc2013-epiphany-c1e9da9eed75fc314c113000d7fe01e7de1ae913.tar.zst gsoc2013-epiphany-c1e9da9eed75fc314c113000d7fe01e7de1ae913.zip |
Automatically open a Nautilus window after downloading has finished. Fixes
2006-10-15 Wouter Bolsterlee <wbolster@gnome.org>
* embed/mozilla/ContentHandler.cpp:
* embed/mozilla/MozDownload.cpp:
* lib/ephy-file-helpers.c: (ephy_file_browse_to):
* lib/ephy-file-helpers.h:
* src/popup-commands.c: (save_property_url_completed_cb),
(save_property_url):
Automatically open a Nautilus window after downloading
has finished. Fixes bug #138876, patch by Ed Catmur.
Diffstat (limited to 'lib/ephy-file-helpers.c')
-rw-r--r-- | lib/ephy-file-helpers.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c index eacde296c..9bc6c04dc 100644 --- a/lib/ephy-file-helpers.c +++ b/lib/ephy-file-helpers.c @@ -1017,6 +1017,27 @@ ephy_file_launch_handler (const char *mime_type, return ret; } +gboolean +ephy_file_browse_to (const char *parameter, + guint32 user_time) +{ + GnomeVFSURI *uri, *parent_uri; + gboolean ret; + + uri = gnome_vfs_uri_new (parameter); + parent_uri = gnome_vfs_uri_get_parent (uri); + + /* TODO find a way to make nautilus scroll to the actual file */ + ret = ephy_file_launch_handler ("x-directory/normal", + gnome_vfs_uri_get_path (parent_uri), + user_time); + + gnome_vfs_uri_unref (uri); + gnome_vfs_uri_unref (parent_uri); + + return ret; +} + struct _EphyFileMonitor { GnomeVFSMonitorHandle *handle; |