mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-19 18:00:09 +00:00
stop the emission of the signal also when we bail out early because we
2008-09-05 Michael Natterer <mitch@imendio.com> * gtk/gtkfilechooserdefault.c (file_list_drag_data_received_cb): stop the emission of the signal also when we bail out early because we don't accept drops from ourselves. Keeps the code from running into a warning in gtktreeview.c. svn path=/trunk/; revision=21302
This commit is contained in:
parent
e559a55f31
commit
e936ba0f5a
@ -1,3 +1,10 @@
|
||||
2008-09-05 Michael Natterer <mitch@imendio.com>
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (file_list_drag_data_received_cb):
|
||||
stop the emission of the signal also when we bail out early
|
||||
because we don't accept drops from ourselves. Keeps the code from
|
||||
running into a warning in gtktreeview.c.
|
||||
|
||||
2008-09-05 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* gtk-zip.sh.in: Fetch manpages from share/man where they get
|
||||
|
@ -4197,10 +4197,13 @@ file_list_drag_data_received_cb (GtkWidget *widget,
|
||||
|
||||
impl = GTK_FILE_CHOOSER_DEFAULT (data);
|
||||
chooser = GTK_FILE_CHOOSER (data);
|
||||
|
||||
|
||||
/* Allow only drags from other widgets; see bug #533891. */
|
||||
if (gtk_drag_get_source_widget (context) == widget)
|
||||
return;
|
||||
{
|
||||
g_signal_stop_emission_by_name (widget, "drag-data-received");
|
||||
return;
|
||||
}
|
||||
|
||||
/* Parse the text/uri-list string, navigate to the first one */
|
||||
uris = gtk_selection_data_get_uris (selection_data);
|
||||
|
Loading…
Reference in New Issue
Block a user