From: Matthias Clasen Date: Fri, 22 May 2020 21:05:10 +0000 (-0400) Subject: print-editor: Stop using appmenu apis X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~16^2~123^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d5da3b9199106fc1d41ed7f33a092a04ea7d617d;p=gtk4.git print-editor: Stop using appmenu apis The appmenu-related GtkApplication apis are going away. --- diff --git a/demos/print-editor/print-editor.c b/demos/print-editor/print-editor.c index c2819bf8c9..2fa33fd350 100644 --- a/demos/print-editor/print-editor.c +++ b/demos/print-editor/print-editor.c @@ -641,24 +641,25 @@ static GActionEntry app_entries[] = { static const gchar ui_info[] = "" - " " - "
" - " " - " _About" - " app.about" - " <Primary>a" - " " - "
" - "
" - " " - " _Quit" - " app.quit" - " <Primary>q" - " " - "
" - "
" " " " " + " _Application" + "
" + " " + " _About" + " app.about" + " <Primary>a" + " " + "
" + "
" + " " + " _Quit" + " app.quit" + " <Primary>q" + " " + "
" + "
" + " " " _File" "
" " " @@ -738,16 +739,13 @@ static void startup (GApplication *app) { GtkBuilder *builder; - GMenuModel *appmenu; GMenuModel *menubar; builder = gtk_builder_new (); gtk_builder_add_from_string (builder, ui_info, -1, NULL); - appmenu = (GMenuModel *)gtk_builder_get_object (builder, "appmenu"); menubar = (GMenuModel *)gtk_builder_get_object (builder, "menubar"); - gtk_application_set_app_menu (GTK_APPLICATION (app), appmenu); gtk_application_set_menubar (GTK_APPLICATION (app), menubar); g_object_unref (builder);