Commit 07ff6afd authored by Cosimo Cecchi's avatar Cosimo Cecchi

interactive-dialog: use app menu button as fallback instead of menubar

When the app menu cannot be displayed, for instance because the shell
does not support it, use the app menu button in the header bar as a
fallback, instead of the double menubar.

https://bugzilla.gnome.org/show_bug.cgi?id=787214
parent b8bff713
......@@ -450,6 +450,8 @@ screenshot_interactive_dialog_new (CaptureClickedCallback f, gpointer user_data)
dialog = gtk_application_window_new (GTK_APPLICATION (g_application_get_default ()));
header_bar = gtk_header_bar_new ();
gtk_header_bar_set_show_close_button (GTK_HEADER_BAR (header_bar), TRUE);
gtk_header_bar_set_decoration_layout (GTK_HEADER_BAR (header_bar), "menu");
gtk_window_set_titlebar (GTK_WINDOW (dialog), header_bar);
gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
......
Markdown is supported
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