diff options
author | Remi Cohen-Scali <remi@cohen-scali.com> | 2003-01-06 01:12:04 +0000 |
---|---|---|
committer | Mark McLoughlin <markmc@src.gnome.org> | 2003-01-06 01:12:04 +0000 |
commit | b4343eb9c276bfb035f130d14e452f60ef370ff2 (patch) | |
tree | 1435b981084982954004cff1a76791f8b2285bed /capplets/theme-switcher | |
parent | 390e0ccab8d75e25c05acfe4755e3573b1f35b45 (diff) | |
download | gnome-control-center-b4343eb9c276bfb035f130d14e452f60ef370ff2.tar.gz |
Reviewed by: Jody Goldberg <jody@gnome.org>
2002-11-29 Remi Cohen-Scali <remi@cohen-scali.com>
Reviewed by: Jody Goldberg <jody@gnome.org>
* capplets/theme-switcher/gnome-theme-manager.c (drag_data_received_cb):
Add a test to detect is uri is local. If not use full URI instead
of just the path in order to be able to download remote tarballs.
Fixes #97983.
Diffstat (limited to 'capplets/theme-switcher')
-rw-r--r-- | capplets/theme-switcher/gnome-theme-manager.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/capplets/theme-switcher/gnome-theme-manager.c b/capplets/theme-switcher/gnome-theme-manager.c index 1945bf682..4818c1e47 100644 --- a/capplets/theme-switcher/gnome-theme-manager.c +++ b/capplets/theme-switcher/gnome-theme-manager.c @@ -1183,8 +1183,16 @@ gnome_theme_manager_drag_data_received_cb (GtkWidget *widget, GdkDragContext *co uris = gnome_vfs_uri_list_parse ((gchar *) selection_data->data); if (uris != NULL && uris->data != NULL) { GnomeVFSURI *uri = (GnomeVFSURI *) uris->data; - filename = gnome_vfs_unescape_string ( - gnome_vfs_uri_get_path (uri), G_DIR_SEPARATOR_S); + + if (gnome_vfs_uri_is_local (uri)) + filename = gnome_vfs_unescape_string ( + gnome_vfs_uri_get_path (uri), + G_DIR_SEPARATOR_S); + else + filename = gnome_vfs_unescape_string ( + gnome_vfs_uri_to_string (uri, GNOME_VFS_URI_HIDE_NONE), + G_DIR_SEPARATOR_S); + gnome_vfs_uri_list_unref (uris); } |