1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-09-19 18:05:25 +00:00

about: Switch to AdwAboutWindow

Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/726>
This commit is contained in:
Anton Lazarev 2024-04-19 14:02:23 -07:00
parent 36cd614310
commit 14362843c9
2 changed files with 14 additions and 18 deletions

View file

@ -87,7 +87,7 @@ about_action (GSimpleAction *action,
const gchar *version = NULL;
static const gchar *authors[] = {
static const gchar *developers[] = {
"Adrien Plazas <kekun.plazas@laposte.net>",
"Bob Ham <rah@settrans.net>",
"Guido Günther <agx@sigxcpu.org>",
@ -96,7 +96,7 @@ about_action (GSimpleAction *action,
NULL
};
static const gchar *artists[] = {
static const gchar *designers[] = {
"Tobias Bernard <tbernard@gnome.org>",
NULL
};
@ -109,21 +109,16 @@ about_action (GSimpleAction *action,
version = g_str_equal (VCS_TAG, "") ?
PACKAGE_VERSION : PACKAGE_VERSION "-" VCS_TAG;
/*
* program-name defaults to g_get_application_name().
* Dont set it explicitly so that there is one less
* string to translate.
*/
gtk_show_about_dialog (GTK_WINDOW (self),
"artists", artists,
"authors", authors,
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,
"license-type", GTK_LICENSE_GPL_3_0,
"logo-icon-name", APP_ID,
"translator-credits", _("translator-credits"),
"version", version,
"website", PACKAGE_URL,
NULL);
}

View file

@ -15,6 +15,7 @@
</gresource>
<gresource prefix="/org/gnome/Calls/">
<file>style.css</file>
<file>org.gnome.Calls.metainfo.xml</file>
</gresource>
<gresource prefix="/org/gnome/Calls/icons/">
<file>call-arrow-incoming-symbolic.svg</file>