[gtk/wip/baedert/for-master: 2/7] headerbar: Replace gtk_widget_destroy() call
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 2/7] headerbar: Replace gtk_widget_destroy() call
- Date: Sat, 22 Feb 2020 07:33:37 +0000 (UTC)
commit f90444e9cbc647b605427d6bdddcab116b71e114
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]