gnome-panel r11112 - branches/gnome-2-22/gnome-panel



Author: vuntz
Date: Tue May 20 21:12:40 2008
New Revision: 11112
URL: http://svn.gnome.org/viewvc/gnome-panel?rev=11112&view=rev

Log:
2008-05-20  Vincent Untz  <vuntz gnome org>

	* panel-addto.c: (panel_addto_setup_launcher_drag): use an URI and not
	a path when setting the drag source for text/uri-list. Fix bug #532171.


Modified:
   branches/gnome-2-22/gnome-panel/ChangeLog
   branches/gnome-2-22/gnome-panel/panel-addto.c

Modified: branches/gnome-2-22/gnome-panel/panel-addto.c
==============================================================================
--- branches/gnome-2-22/gnome-panel/panel-addto.c	(original)
+++ branches/gnome-2-22/gnome-panel/panel-addto.c	Tue May 20 21:12:40 2008
@@ -350,16 +350,19 @@
 
 static void
 panel_addto_setup_launcher_drag (GtkTreeView *tree_view,
-				 const char  *uri)
+				 const char  *path)
 {
         static GtkTargetEntry target[] = {
 		{ "text/uri-list", 0, 0 }
 	};
+	char *uri;
 	char *uri_list;
 
+	uri = g_filename_to_uri (path, NULL, NULL);
 	uri_list = g_strconcat (uri, "\r\n", NULL);
 	panel_addto_setup_drag (tree_view, target, uri_list);
 	g_free (uri_list);
+	g_free (uri);
 }
 
 static void



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