[nautilus/wip/antoniof/gnome-42: 37/72] Revert "window-slot: Drop non-window usage of gtk_widget_destroy()"
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/gnome-42: 37/72] Revert "window-slot: Drop non-window usage of gtk_widget_destroy()"
- Date: Fri, 11 Feb 2022 19:28:00 +0000 (UTC)
commit 8bcfc26859f285d0022fcf69137e32c8df95a051
Author: António Fernandes <antoniof gnome org>
Date: Fri Feb 11 19:01:47 2022 +0000
Revert "window-slot: Drop non-window usage of gtk_widget_destroy()"
This reverts commit 9e15ee29b24a3b3bc9644e9deeebd3bf29647205.
src/nautilus-window-slot.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index e1d3ae810..25b582610 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -2817,7 +2817,7 @@ nautilus_window_slot_switch_new_content_view (NautilusWindowSlot *self)
g_binding_unbind (self->extensions_background_menu_binding);
g_binding_unbind (self->templates_menu_binding);
widget = GTK_WIDGET (self->content_view);
- gtk_box_remove (GTK_BOX (self), widget);
+ gtk_widget_destroy (widget);
g_clear_object (&self->content_view);
}
@@ -2903,13 +2903,13 @@ nautilus_window_slot_dispose (GObject *object)
if (self->content_view)
{
- gtk_box_remove (GTK_BOX (self), GTK_WIDGET (self->content_view));
+ gtk_widget_destroy (GTK_WIDGET (self->content_view));
g_clear_object (&self->content_view);
}
if (self->new_content_view)
{
- gtk_box_remove (GTK_BOX (self), GTK_WIDGET (self->new_content_view));
+ gtk_widget_destroy (GTK_WIDGET (self->new_content_view));
g_clear_object (&self->new_content_view);
}
@@ -2928,6 +2928,7 @@ nautilus_window_slot_dispose (GObject *object)
if (self->query_editor)
{
+ gtk_widget_destroy (GTK_WIDGET (self->query_editor));
g_clear_object (&self->query_editor);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]