[gtk/wip/baedert/for-master: 52/66] menusectionbox: Avoid a gtk_widget_destroy() call



commit c924897dfe92aa12bd17984131dd45e17a8a1813
Author: Timm Bäder <mail baedert org>
Date:   Sat Feb 22 09:07:48 2020 +0100

    menusectionbox: Avoid a gtk_widget_destroy() call

 gtk/gtkmenusectionbox.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkmenusectionbox.c b/gtk/gtkmenusectionbox.c
index 9aec305ec6..94760fdf9f 100644
--- a/gtk/gtkmenusectionbox.c
+++ b/gtk/gtkmenusectionbox.c
@@ -222,7 +222,8 @@ gtk_menu_section_box_remove_func (gint     position,
         gtk_container_remove (GTK_CONTAINER (stack), subbox);
     }
 
-  gtk_widget_destroy (g_list_nth_data (children, position));
+  gtk_container_remove (GTK_CONTAINER (box->item_box),
+                        g_list_nth_data (children, position));
   g_list_free (children);
 
   gtk_menu_section_box_schedule_separator_sync (box);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]