Theme-manager & dropped URIs



A fix for theme management
Index: gnome-control-center/ChangeLog
===================================================================
RCS file: /cvs/gnome/gnome-control-center/ChangeLog,v
retrieving revision 1.525
diff -u -d -r1.525 ChangeLog
--- gnome-control-center/ChangeLog	3 Nov 2002 04:11:38 -0000	1.525
+++ gnome-control-center/ChangeLog	8 Nov 2002 01:38:35 -0000
@@ -1,3 +1,9 @@
+2002-11-08  Remi Cohen-Scali  <remi cohen-scali com>
+
+	* capplets/theme-switcher/theme-switcher.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.	
+
 2002-11-03  Dmitry G. Mastrukov  <dmitry taurussoft org>
 
 	* configure.in: Added Belarusian to ALL_LINGUAS
Index: gnome-control-center/capplets/theme-switcher/theme-switcher.c
===================================================================
RCS file: /cvs/gnome/gnome-control-center/capplets/theme-switcher/theme-switcher.c,v
retrieving revision 1.21
diff -u -d -r1.21 theme-switcher.c
--- gnome-control-center/capplets/theme-switcher/theme-switcher.c	29 Oct 2002 06:19:50 -0000	1.21
+++ gnome-control-center/capplets/theme-switcher/theme-switcher.c	8 Nov 2002 01:38:35 -0000
@@ -667,8 +667,12 @@
 	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_uri_to_string(uri, 
+                                                     GNOME_VFS_URI_HIDE_NONE);
 		gnome_vfs_uri_list_unref (uris);
 	}
 
diff -Nru tmp/control-center-2.1.1/ChangeLog work/control-center-2.1.1/ChangeLog 
--- tmp/control-center-2.1.1/ChangeLog	Mon Oct 21 18:30:52 2002
+++ work/control-center-2.1.1/ChangeLog	Fri Nov  8 02:32:35 2002
@@ -1,3 +1,9 @@
+2002-11-08  Remi Cohen-Scali  <remi cohen-scali com>
+
+	* capplets/theme-switcher/theme-switcher.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.
+
 2002-10-21  Jody Goldberg <jody gnome org>
 
 	* Release 2.1.1
diff -Nru tmp/control-center-2.1.1/capplets/theme-switcher/theme-switcher.c work/control-center-2.1.1/capplets/theme-switcher/theme-switcher.c
--- tmp/control-center-2.1.1/capplets/theme-switcher/theme-switcher.c	Wed Sep 18 19:07:25 2002
+++ work/control-center-2.1.1/capplets/theme-switcher/theme-switcher.c	Fri Nov  8 02:18:12 2002
@@ -664,8 +664,12 @@
 	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_uri_to_string(uri, 
+                                                     GNOME_VFS_URI_HIDE_NONE);
 		gnome_vfs_uri_list_unref (uris);
 	}
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]