talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 3b14f476066860518abe501187f600125832f2ad
parent f0b7352b384ee88c1202378483ec213395ccf94b
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Sat, 25 Jul 2015 14:02:33 +0200

Fixed handling of drag&drop onto compose text area on Windows.

Fixes bug #3475.

Diffstat:
Msrc/compose.c | 11++---------
1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/src/compose.c b/src/compose.c @@ -11144,11 +11144,8 @@ static void compose_attach_drag_received_cb (GtkWidget *widget, GdkAtom type; type = gtk_selection_data_get_data_type(data); - if (((gdk_atom_name(type) && !strcmp(gdk_atom_name(type), "text/uri-list")) -#ifdef G_OS_WIN32 - || (gdk_atom_name(type) && !strcmp(gdk_atom_name(type), "DROPFILES_DND")) -#endif - ) && gtk_drag_get_source_widget(context) != + if ((gdk_atom_name(type) && !strcmp(gdk_atom_name(type), "text/uri-list")) + && gtk_drag_get_source_widget(context) != summary_get_main_widget(mainwindow_get_mainwindow()->summaryview)) { list = uri_list_extract_filenames( (const gchar *)gtk_selection_data_get_data(data)); @@ -11231,11 +11228,7 @@ static void compose_insert_drag_received_cb (GtkWidget *widget, /* strangely, testing data->type == gdk_atom_intern("text/uri-list", TRUE) * does not work */ type = gtk_selection_data_get_data_type(data); -#ifndef G_OS_WIN32 if (gdk_atom_name(type) && !strcmp(gdk_atom_name(type), "text/uri-list")) { -#else - if (gdk_atom_name(type) && !strcmp(gdk_atom_name(type), "DROPFILES_DND")) { -#endif AlertValue val = G_ALERTDEFAULT; const gchar* ddata = (const gchar *)gtk_selection_data_get_data(data);