Commit ae4eff58 authored by Adrien Plazas's avatar Adrien Plazas
Browse files

gtkheaderbar: Use a back button in transient windows

This will allow to drop the close buttons and make the transient windows
look like proper mobile dialogs.
parent 8a2c09d7
......@@ -312,7 +312,8 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar)
"gtk-decoration-layout", &layout_desc,
is_mobile_dialog = GTK_IS_DIALOG (toplevel);
is_mobile_dialog = GTK_IS_DIALOG (toplevel) ||
(GTK_IS_WINDOW (toplevel) && !!gtk_window_get_transient_for (GTK_WINDOW (toplevel)));
if (is_mobile_dialog)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment