mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
Don't pass NULL to gdk_window_set_title
That is not allowed. This is fallout from a recent change that makes GtkWindow listen for title changes in its headerbar.
This commit is contained in:
parent
cc5526fd98
commit
d632474b74
@ -1792,11 +1792,14 @@ gtk_window_set_title_internal (GtkWindow *window,
|
||||
g_free (priv->title);
|
||||
priv->title = new_title;
|
||||
|
||||
if (new_title == NULL)
|
||||
new_title = "";
|
||||
|
||||
if (gtk_widget_get_realized (widget))
|
||||
gdk_window_set_title (gtk_widget_get_window (widget), priv->title);
|
||||
gdk_window_set_title (gtk_widget_get_window (widget), new_title);
|
||||
|
||||
if (priv->titlebar != NULL && update_titlebar)
|
||||
gtk_header_bar_set_title (GTK_HEADER_BAR (priv->titlebar), priv->title);
|
||||
gtk_header_bar_set_title (GTK_HEADER_BAR (priv->titlebar), new_title);
|
||||
|
||||
g_object_notify (G_OBJECT (window), "title");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user