cheese r662 - in branches/gnome-2-22: . src



Author: dgsiegel
Date: Sat Apr 19 14:02:14 2008
New Revision: 662
URL: http://svn.gnome.org/viewvc/cheese?rev=662&view=rev

Log:
fix regression of DnD, courtesy of Cosimo Cecchi, fixes bug #526398


Modified:
   branches/gnome-2-22/ChangeLog
   branches/gnome-2-22/src/cheese-thumb-view.c

Modified: branches/gnome-2-22/src/cheese-thumb-view.c
==============================================================================
--- branches/gnome-2-22/src/cheese-thumb-view.c	(original)
+++ branches/gnome-2-22/src/cheese-thumb-view.c	Sat Apr 19 14:02:14 2008
@@ -212,15 +212,19 @@
     gtk_tree_model_get_iter (model, &iter, tree_path);
     gtk_tree_model_get (model, &iter, 1, &str, -1);
 
+    /* we always store local paths in the model, but DnD
+     * needs URIs, so we must add file:// to the path.
+     */
+
     /* build the "text/uri-list" string */
     if (uris) 
     {
-      tmp_str = g_strconcat (uris, str, "\r\n", NULL);
+      tmp_str = g_strconcat (uris, "file://", str, "\r\n", NULL);
       g_free (uris);
     } 
     else 
     { 
-      tmp_str = g_strconcat (str, "\r\n", NULL);
+      tmp_str = g_strconcat ("file://", str, "\r\n", NULL);
     }
     uris = tmp_str;
 



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