From 14362843c9137db014414a3ca645c08c586f43c5 Mon Sep 17 00:00:00 2001 From: Anton Lazarev Date: Fri, 19 Apr 2024 14:02:23 -0700 Subject: [PATCH] about: Switch to AdwAboutWindow Part-of: --- src/calls-main-window.c | 31 +++++++++++++------------------ src/calls.gresources.xml | 1 + 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/src/calls-main-window.c b/src/calls-main-window.c index c582307..5fbb8f5 100644 --- a/src/calls-main-window.c +++ b/src/calls-main-window.c @@ -87,7 +87,7 @@ about_action (GSimpleAction *action, const gchar *version = NULL; - static const gchar *authors[] = { + static const gchar *developers[] = { "Adrien Plazas ", "Bob Ham ", "Guido Günther ", @@ -96,7 +96,7 @@ about_action (GSimpleAction *action, NULL }; - static const gchar *artists[] = { + static const gchar *designers[] = { "Tobias Bernard ", NULL }; @@ -109,22 +109,17 @@ about_action (GSimpleAction *action, version = g_str_equal (VCS_TAG, "") ? PACKAGE_VERSION : PACKAGE_VERSION "-" VCS_TAG; - /* - * “program-name” defaults to g_get_application_name(). - * Don’t set it explicitly so that there is one less - * string to translate. - */ - gtk_show_about_dialog (GTK_WINDOW (self), - "artists", artists, - "authors", authors, - "copyright", "Copyright © 2018 - 2022 Purism", - "documenters", documenters, - "license-type", GTK_LICENSE_GPL_3_0, - "logo-icon-name", APP_ID, - "translator-credits", _("translator-credits"), - "version", version, - "website", PACKAGE_URL, - NULL); + adw_show_about_window_from_appdata (GTK_WINDOW (self), + "/org/gnome/Calls/org.gnome.Calls.metainfo.xml", + PACKAGE_VERSION, // must match a release in metainfo.xml + "designers", designers, + "developers", developers, + "developer-name", "The GNOME Project", + "copyright", "Copyright © 2018 - 2022 Purism", + "documenters", documenters, + "translator-credits", _("translator-credits"), + "version", version, + NULL); } diff --git a/src/calls.gresources.xml b/src/calls.gresources.xml index a94ae2d..721fef0 100644 --- a/src/calls.gresources.xml +++ b/src/calls.gresources.xml @@ -15,6 +15,7 @@ style.css + org.gnome.Calls.metainfo.xml call-arrow-incoming-symbolic.svg