diff options
author | António Fernandes <antoniof@gnome.org> | 2022-02-11 19:01:47 +0000 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2022-02-11 19:23:35 +0000 |
commit | 8bcfc26859f285d0022fcf69137e32c8df95a051 (patch) | |
tree | 3930ddbcae524afdc0934bec82793a6e477f61a5 | |
parent | 9b1c1825f537f270428c121f61bc4ab9dad24cd4 (diff) | |
download | nautilus-8bcfc26859f285d0022fcf69137e32c8df95a051.tar.gz |
Revert "window-slot: Drop non-window usage of gtk_widget_destroy()"
This reverts commit 9e15ee29b24a3b3bc9644e9deeebd3bf29647205.
-rw-r--r-- | src/nautilus-window-slot.c | 7 |
1 files 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); } |