file-roller r2257 - in trunk: . src



Author: paobac
Date: Sat Apr 19 11:26:00 2008
New Revision: 2257
URL: http://svn.gnome.org/viewvc/file-roller?rev=2257&view=rev

Log:
2008-04-19  Paolo Bacchilega  <paobac svn gnome org>

	* src/fr-window.c: give visual feedback that you cannot drop on the 
	same window when dragging a folder from the folder pane.

Modified:
   trunk/ChangeLog
   trunk/src/fr-window.c

Modified: trunk/src/fr-window.c
==============================================================================
--- trunk/src/fr-window.c	(original)
+++ trunk/src/fr-window.c	Sat Apr 19 11:26:00 2008
@@ -3583,7 +3583,7 @@
 
 static gboolean
 fr_window_drag_motion (GtkWidget      *widget,
-		       GdkDragContext *drag_context,
+		       GdkDragContext *context,
 		       gint            x,
 		       gint            y,
 		       guint           time,
@@ -3591,8 +3591,10 @@
 {
 	FrWindow  *window = user_data;
 
-	if (gtk_drag_get_source_widget (drag_context) == window->priv->list_view) {
-		gdk_drag_status (drag_context, 0, time);
+	if ((gtk_drag_get_source_widget (context) == window->priv->list_view)
+	    || (gtk_drag_get_source_widget (context) == window->priv->tree_view))
+	{
+		gdk_drag_status (context, 0, time);
 		return FALSE;
 	}
 



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