[gtk/wip/baedert/for-master: 60/86] popovermenu: Avoid a gtk_widget_destroy() call
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 60/86] popovermenu: Avoid a gtk_widget_destroy() call
- Date: Sun, 23 Feb 2020 11:24:40 +0000 (UTC)
commit 526306d7704a912ee3130e186e19fac22742013e
Author: Timm Bäder <mail baedert org>
Date: Thu Feb 20 18:05:00 2020 +0100
popovermenu: Avoid a gtk_widget_destroy() call
gtk/gtkpopovermenu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkpopovermenu.c b/gtk/gtkpopovermenu.c
index 2f73218d88..66cfa34e34 100644
--- a/gtk/gtkpopovermenu.c
+++ b/gtk/gtkpopovermenu.c
@@ -613,7 +613,7 @@ gtk_popover_menu_set_menu_model (GtkPopoverMenu *popover,
stack = gtk_bin_get_child (GTK_BIN (popover));
while ((child = gtk_widget_get_first_child (stack)))
- gtk_widget_destroy (child);
+ gtk_container_remove (GTK_CONTAINER (stack), child);
if (model)
gtk_menu_section_box_new_toplevel (popover, model, popover->flags);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]