[gimp/gtk3-port: 140/224] app: use gdk_drag_context_get_selected_action() instead of conect->action



commit 6d1de2b4d314fdc8fc2a714603bbd15f5cf071ef
Author: Michael Natterer <mitch gimp org>
Date:   Wed Dec 22 22:01:23 2010 +0100

    app: use gdk_drag_context_get_selected_action() instead of conect->action

 app/widgets/gimptoolbox.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimptoolbox.c b/app/widgets/gimptoolbox.c
index dd278d4..d83a916 100644
--- a/app/widgets/gimptoolbox.c
+++ b/app/widgets/gimptoolbox.c
@@ -547,7 +547,8 @@ gimp_toolbox_drag_drop (GtkWidget      *widget,
   if (handled)
     gtk_drag_finish (context,
                      TRUE /*success*/,
-                     (context->action == GDK_ACTION_MOVE) /*del*/,
+                     gdk_drag_context_get_selected_action (context) ==
+                     GDK_ACTION_MOVE /*del*/,
                      time);
 
   return handled;



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