aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-chat.c
diff options
context:
space:
mode:
authorShaun McCance <Shaun McCance>2009-10-06 03:22:32 +0800
committerShaun McCance <shaunm@gnome.org>2009-11-25 05:14:51 +0800
commitf167ec2d92a526d19f1faf8320d9ff975ae1e502 (patch)
tree3c2c3888e3a77efd8d23a9a0a909f7608cacd33e /libempathy-gtk/empathy-chat.c
parentcfb4283d66005aa2f12b15ce0d5aefde965d815a (diff)
downloadgsoc2013-empathy-f167ec2d92a526d19f1faf8320d9ff975ae1e502.tar
gsoc2013-empathy-f167ec2d92a526d19f1faf8320d9ff975ae1e502.tar.gz
gsoc2013-empathy-f167ec2d92a526d19f1faf8320d9ff975ae1e502.tar.bz2
gsoc2013-empathy-f167ec2d92a526d19f1faf8320d9ff975ae1e502.tar.lz
gsoc2013-empathy-f167ec2d92a526d19f1faf8320d9ff975ae1e502.tar.xz
gsoc2013-empathy-f167ec2d92a526d19f1faf8320d9ff975ae1e502.tar.zst
gsoc2013-empathy-f167ec2d92a526d19f1faf8320d9ff975ae1e502.zip
Utilitiy function to send files from a URI list, for dnd implementations
Diffstat (limited to 'libempathy-gtk/empathy-chat.c')
-rw-r--r--libempathy-gtk/empathy-chat.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index c83649a04..52806e07c 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -2007,6 +2007,11 @@ chat_create_ui (EmpathyChat *chat)
/* Add message view. */
chat->view = empathy_theme_manager_create_view (empathy_theme_manager_get ());
+ /* If this is a GtkTextView, it's set as a drag destination for text/plain
+ and other types, even though it's non-editable and doesn't accept any
+ drags. This steals drag motion for anything inside the scrollbars,
+ making drag destinations on chat windows far less useful.
+ */
gtk_drag_dest_unset (GTK_WIDGET (chat->view));
g_signal_connect (chat->view, "focus_in_event",
G_CALLBACK (chat_text_view_focus_in_event_cb),