[gimp/gtk3-port: 132/233] app: use	gdk_drag_context_get_selected_action() instead of conect->action
- From: Michael Natterer <mitch src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gimp/gtk3-port: 132/233] app: use	gdk_drag_context_get_selected_action() instead of conect->action
 
- Date: Wed, 30 Mar 2016 21:17:18 +0000 (UTC)
 
commit 9884a47565e1c542478e704726b85587b4e970b7
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 |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimptoolbox.c b/app/widgets/gimptoolbox.c
index a56796f..8b3cda3 100644
--- a/app/widgets/gimptoolbox.c
+++ b/app/widgets/gimptoolbox.c
@@ -526,7 +526,10 @@ gimp_toolbox_drag_drop (GtkWidget      *widget,
       dropped = TRUE;
     }
 
-  gtk_drag_finish (context, dropped, (context->action == GDK_ACTION_MOVE), time);
+  gtk_drag_finish (context, dropped,
+                   gdk_drag_context_get_selected_action (context) ==
+                   GDK_ACTION_MOVE,
+                   time);
 
   return TRUE;
 }
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]