[gtk/wip/baedert/for-master: 3/24] stackswitcher: Avoid calling gtk_widget_destroy()



commit dbd1180ce463608fd612b25c894f8a0c171b20c4
Author: Timm Bäder <mail baedert org>
Date:   Fri Feb 21 09:08:05 2020 +0100

    stackswitcher: Avoid calling gtk_widget_destroy()

 gtk/gtkstackswitcher.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkstackswitcher.c b/gtk/gtkstackswitcher.c
index 979d0cdd11..48173692eb 100644
--- a/gtk/gtkstackswitcher.c
+++ b/gtk/gtkstackswitcher.c
@@ -136,7 +136,7 @@ rebuild_child (GtkWidget   *self,
 
   button_child = gtk_bin_get_child (GTK_BIN (self));
   if (button_child != NULL)
-    gtk_widget_destroy (button_child);
+    gtk_container_remove (GTK_CONTAINER (self), button_child);
 
   button_child = NULL;
 


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