[gtk/wip/baedert/for-master: 28/36] 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: 28/36] stackswitcher: Avoid calling gtk_widget_destroy()
- Date: Sat, 22 Feb 2020 07:32:07 +0000 (UTC)
commit 0147cb9ad2db7f0c54053dfb9acaac9e57ff85ae
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 699904627f..7b786bffda 100644
--- a/gtk/gtkstackswitcher.c
+++ b/gtk/gtkstackswitcher.c
@@ -158,7 +158,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]