[gtk/wip/baedert/for-master: 62/86] popovermenubar: Avoid calling gtk_widget_destroy()
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 62/86] popovermenubar: Avoid calling gtk_widget_destroy()
- Date: Sun, 23 Feb 2020 11:24:50 +0000 (UTC)
commit dffe4e18e76ee3582572be5e8801590147684374
Author: Timm Bäder <mail baedert org>
Date: Thu Feb 20 19:26:44 2020 +0100
popovermenubar: Avoid calling gtk_widget_destroy()
gtk/gtkpopovermenubar.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkpopovermenubar.c b/gtk/gtkpopovermenubar.c
index 411d4c0358..bf9077219c 100644
--- a/gtk/gtkpopovermenubar.c
+++ b/gtk/gtkpopovermenubar.c
@@ -369,7 +369,7 @@ tracker_remove (gint position,
{
if (i == position)
{
- gtk_widget_destroy (child);
+ gtk_widget_unparent (child);
break;
}
}
@@ -479,7 +479,7 @@ gtk_popover_menu_bar_dispose (GObject *object)
g_clear_object (&bar->model);
while ((child = gtk_widget_get_first_child (GTK_WIDGET (bar))))
- gtk_widget_destroy (child);
+ gtk_widget_unparent (child);
G_OBJECT_CLASS (gtk_popover_menu_bar_parent_class)->dispose (object);
}
@@ -650,7 +650,7 @@ gtk_popover_menu_bar_set_menu_model (GtkPopoverMenuBar *bar,
GtkActionMuxer *muxer;
while ((child = gtk_widget_get_first_child (GTK_WIDGET (bar))))
- gtk_widget_destroy (child);
+ gtk_widget_unparent (child);
g_clear_pointer (&bar->tracker, gtk_menu_tracker_free);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]