[gtk/wip/baedert/for-master: 6/24] headerbar: Replace gtk_widget_destroy() call



commit 549a3a81aedffffe57e9ec2dabf28cb55a042c5d
Author: Timm Bäder <mail baedert org>
Date:   Fri Feb 21 13:04:44 2020 +0100

    headerbar: Replace gtk_widget_destroy() call

 gtk/gtkheaderbar.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c
index 1a81f327bc..ca56f4fba1 100644
--- a/gtk/gtkheaderbar.c
+++ b/gtk/gtkheaderbar.c
@@ -386,7 +386,8 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar)
 
                   if (!_gtk_header_bar_update_window_icon (bar, window))
                     {
-                      gtk_widget_destroy (button);
+                      g_object_ref_sink (button);
+                      g_object_unref (button);
                       priv->titlebar_icon = NULL;
                       button = NULL;
                     }


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