[gnome-commander] GnomeCmdFileList: do not prompt to confirm d&d when moving with SHIFT/CTRL modifier
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] GnomeCmdFileList: do not prompt to confirm d&d when moving with SHIFT/CTRL modifier
- Date: Fri, 12 Aug 2011 17:52:45 +0000 (UTC)
commit 11df0266c681b2990ed0fc1d926a64f3c9e3dc5e
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Fri Aug 12 19:50:33 2011 +0200
GnomeCmdFileList: do not prompt to confirm d&d when moving with SHIFT/CTRL modifier
src/gnome-cmd-file-list.cc | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/gnome-cmd-file-list.cc b/src/gnome-cmd-file-list.cc
old mode 100644
new mode 100755
index 49e84da..fc201d6
--- a/src/gnome-cmd-file-list.cc
+++ b/src/gnome-cmd-file-list.cc
@@ -2791,16 +2791,17 @@ static void drag_data_received (GtkWidget *widget, GdkDragContext *context, gint
// transform the drag data to a list with URIs
GList *uri_list = strings_to_uris ((gchar *) selection_data->data);
- if (gnome_cmd_data.confirm_mouse_dnd)
+ GdkModifierType mask;
+
+ gdk_display_get_pointer (gdk_display_get_default (), NULL, &x, &y, &mask);
+
+ if (gnome_cmd_data.confirm_mouse_dnd && !(mask&(GDK_SHIFT_MASK|GDK_CONTROL_MASK)))
{
gpointer *arr = g_new (gpointer, 2);
arr[0] = uri_list;
arr[1] = to;
- int x, y;
-
- gdk_display_get_pointer (gdk_display_get_default (), NULL, &x, &y, NULL);
gtk_item_factory_popup_with_data (fl->priv->ifac, arr, (GDestroyNotify) free_dnd_popup_data, x, y, 0, time);
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]