[gtk/wip/baedert/for-master: 45/66] stackswitcher: 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: 45/66] stackswitcher: Avoid calling gtk_widget_destroy()
- Date: Tue, 25 Feb 2020 09:52:26 +0000 (UTC)
commit ed473493d099eeaf38e098834eb8fe280abd17d2
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]