mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 05:00:09 +00:00
headerbar: Replace gtk_widget_destroy() call
This commit is contained in:
parent
ff4a33b69b
commit
549a3a81ae
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user