[gtk/wip/baedert/for-master: 75/86] menusectionbox: 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: 75/86] menusectionbox: Avoid a gtk_widget_destroy() call
- Date: Sun, 23 Feb 2020 11:25:56 +0000 (UTC)
commit 3588ac4c381f075f10ba2286655cc432fb6b1d83
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 107355eb24..8d3c844647 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]