[gtk/matthiasc/for-master: 70/70] print-editor: Bring back the menubar



commit c8a96d08a0724e9cfa67dcfd0421e83ef9809fe0
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon May 11 12:55:15 2020 -0400

    print-editor: Bring back the menubar
    
    This was the one place where we relied on
    the menubar fallback in GtkApplicationWindow.
    
    So turn it on explicitly.

 tests/print-editor.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/tests/print-editor.c b/tests/print-editor.c
index 8b90af1efe..11b8f9b061 100644
--- a/tests/print-editor.c
+++ b/tests/print-editor.c
@@ -746,6 +746,7 @@ activate (GApplication *app)
   main_window = gtk_application_window_new (GTK_APPLICATION (app));
   gtk_window_set_icon_name (GTK_WINDOW (main_window), "text-editor");
   gtk_window_set_default_size (GTK_WINDOW (main_window), 400, 600);
+  gtk_application_window_set_show_menubar (GTK_APPLICATION_WINDOW (main_window), TRUE);
   update_title (GTK_WINDOW (main_window));
 
   box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]