summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechooserdefault.c
diff options
context:
space:
mode:
authorMichael Natterer <mitch@imendio.com>2008-09-05 19:53:30 +0000
committerMichael Natterer <mitch@src.gnome.org>2008-09-05 19:53:30 +0000
commite936ba0f5ad0b8d1b6ef45fb40e63c7a874a287e (patch)
tree0d4a1918e1713d992a7f84a14edc76f4545bbc78 /gtk/gtkfilechooserdefault.c
parente559a55f31aea4965e496856a851326bf7bc7d08 (diff)
downloadgtk+-e936ba0f5ad0b8d1b6ef45fb40e63c7a874a287e.tar.gz
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
Diffstat (limited to 'gtk/gtkfilechooserdefault.c')
-rw-r--r--gtk/gtkfilechooserdefault.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index 71eadcf7a3..5f5b849d02 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -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);