forked from AuroraMiddleware/gtk
GtkDialog: Set window titles in header bars
This is fallout from the recent dialog changes. We don't set the headerbar as titlebar early enough anymore, so when the window title gets set, it does not get passed on to the headerbar. So, re-set it manually when the titlebar is put in place. https://bugzilla.gnome.org/show_bug.cgi?id=733099
This commit is contained in:
parent
808705327d
commit
97b9d8e4ae
@ -460,6 +460,7 @@ gtk_dialog_constructed (GObject *object)
|
|||||||
GList *children, *l;
|
GList *children, *l;
|
||||||
|
|
||||||
gtk_window_set_titlebar (GTK_WINDOW (dialog), priv->headerbar);
|
gtk_window_set_titlebar (GTK_WINDOW (dialog), priv->headerbar);
|
||||||
|
gtk_window_set_title (GTK_WINDOW (dialog), gtk_window_get_title (GTK_WINDOW (dialog)));
|
||||||
|
|
||||||
children = gtk_container_get_children (GTK_CONTAINER (priv->action_area));
|
children = gtk_container_get_children (GTK_CONTAINER (priv->action_area));
|
||||||
for (l = children; l != NULL; l = l->next)
|
for (l = children; l != NULL; l = l->next)
|
||||||
|
Loading…
Reference in New Issue
Block a user