diff options
Diffstat (limited to 'gtk/gtkdnd.c')
-rw-r--r-- | gtk/gtkdnd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c index 8c9a55c1dc..68379c9583 100644 --- a/gtk/gtkdnd.c +++ b/gtk/gtkdnd.c @@ -1054,7 +1054,7 @@ gtk_drag_find_widget (GtkWidget *widget, new_allocation = widget->allocation; - if (!GTK_WIDGET_VISIBLE (widget)) + if (data->found || !GTK_WIDGET_MAPPED (widget)) return; if (!GTK_WIDGET_NO_WINDOW (widget)) @@ -1113,9 +1113,9 @@ gtk_drag_find_widget (GtkWidget *widget, new_data.found = FALSE; new_data.toplevel = FALSE; - gtk_container_foreach (GTK_CONTAINER (widget), - (GtkCallback)gtk_drag_find_widget, - &new_data); + gtk_container_forall (GTK_CONTAINER (widget), + (GtkCallback)gtk_drag_find_widget, + &new_data); data->found = new_data.found; } |