cheese r661 - in trunk: . src



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

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


Modified:
   trunk/AUTHORS
   trunk/ChangeLog
   trunk/src/cheese-thumb-view.c

Modified: trunk/AUTHORS
==============================================================================
--- trunk/AUTHORS	(original)
+++ trunk/AUTHORS	Sat Apr 19 14:00:58 2008
@@ -1,6 +1,7 @@
 written by daniel g. siegel <dgsiegel gmail com> and Jaap Haitsma <jaap haitsma org>
 
 the following people contributed to cheese:
+  - Cosimo Cecchi <anarki lilik it>
   - Baptiste Mille-Mathias <bmm80 free fr>
   - Diego Escalante Urrelo <dieguito gmail com>
   - Gintautas Miliauskas <gintas akl lt>

Modified: trunk/src/cheese-thumb-view.c
==============================================================================
--- trunk/src/cheese-thumb-view.c	(original)
+++ trunk/src/cheese-thumb-view.c	Sat Apr 19 14:00:58 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]