[gtk/wip/baedert/for-master: 20/36] 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: 20/36] popovermenu: Avoid a gtk_widget_destroy() call
- Date: Sat, 22 Feb 2020 07:31:27 +0000 (UTC)
commit 01704c703a3ba3a7ee3a4175cdc9e1d3050016aa
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]