mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
overlay: Make forall() remove-safe
Since this is a GtkContainer, forall will be used to destroy all the widgets.
This commit is contained in:
parent
0bb1e1b1fd
commit
84b4f85f1a
@ -459,11 +459,14 @@ gtk_overlay_forall (GtkContainer *overlay,
|
|||||||
{
|
{
|
||||||
GtkWidget *child;
|
GtkWidget *child;
|
||||||
|
|
||||||
for (child = _gtk_widget_get_first_child (GTK_WIDGET (overlay));
|
child = gtk_widget_get_first_child (GTK_WIDGET (overlay));
|
||||||
child != NULL;
|
while (child != NULL)
|
||||||
child = _gtk_widget_get_next_sibling (child))
|
|
||||||
{
|
{
|
||||||
|
GtkWidget *next = gtk_widget_get_next_sibling (child);
|
||||||
|
|
||||||
(* callback) (child, callback_data);
|
(* callback) (child, callback_data);
|
||||||
|
|
||||||
|
child = next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user