diff options
author | Shaun McCance <Shaun McCance> | 2009-09-16 04:57:51 +0800 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2009-11-25 02:05:31 +0800 |
commit | d068663d7d73c7dc54b560b3ed9846c218dd8f35 (patch) | |
tree | aa6bcd0cc77a30eaf3a4a0c4b2d3d9d2a372408b | |
parent | 42185f1d38082579ca113d612000c670eac76869 (diff) | |
download | gsoc2013-empathy-d068663d7d73c7dc54b560b3ed9846c218dd8f35.tar gsoc2013-empathy-d068663d7d73c7dc54b560b3ed9846c218dd8f35.tar.gz gsoc2013-empathy-d068663d7d73c7dc54b560b3ed9846c218dd8f35.tar.bz2 gsoc2013-empathy-d068663d7d73c7dc54b560b3ed9846c218dd8f35.tar.lz gsoc2013-empathy-d068663d7d73c7dc54b560b3ed9846c218dd8f35.tar.xz gsoc2013-empathy-d068663d7d73c7dc54b560b3ed9846c218dd8f35.tar.zst gsoc2013-empathy-d068663d7d73c7dc54b560b3ed9846c218dd8f35.zip |
Handle MOVE and COPY drags better, change contact-id drags to COPY
-rw-r--r-- | src/empathy-chat-window.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c index 90d4f8f6d..36f31b0b1 100644 --- a/src/empathy-chat-window.c +++ b/src/empathy-chat-window.c @@ -116,8 +116,7 @@ static const GtkTargetEntry drag_types_dest[] = { { "text/uri-list", 0, DND_DRAG_TYPE_URI_LIST }, }; -static const GtkTargetEntry drag_types_dest_noft[] = { - { "text/contact-id", 0, DND_DRAG_TYPE_CONTACT_ID }, +static const GtkTargetEntry drag_types_dest_move[] = { { "GTK_NOTEBOOK_TAB", GTK_TARGET_SAME_APP, DND_DRAG_TYPE_TAB }, }; @@ -1340,14 +1339,17 @@ chat_window_drag_motion (GtkWidget *widget, GdkAtom target; if (list == NULL) { - list = gtk_target_list_new (drag_types_dest_noft, - G_N_ELEMENTS (drag_types_dest_noft)); + list = gtk_target_list_new (drag_types_dest_move, + G_N_ELEMENTS (drag_types_dest_move)); } target = gtk_drag_dest_find_target (widget, context, list); if (target == GDK_NONE) { gdk_drag_status (context, GDK_ACTION_COPY, time); } + else { + gdk_drag_status (context, GDK_ACTION_MOVE, time); + } } static void |