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; const gchar *version = NULL;
static const gchar *authors[] = { static const gchar *developers[] = {
"Adrien Plazas <kekun.plazas@laposte.net>", "Adrien Plazas <kekun.plazas@laposte.net>",
"Bob Ham <rah@settrans.net>", "Bob Ham <rah@settrans.net>",
"Guido Günther <agx@sigxcpu.org>", "Guido Günther <agx@sigxcpu.org>",
@ -96,7 +96,7 @@ about_action (GSimpleAction *action,
NULL NULL
}; };
static const gchar *artists[] = { static const gchar *designers[] = {
"Tobias Bernard <tbernard@gnome.org>", "Tobias Bernard <tbernard@gnome.org>",
NULL NULL
}; };
@ -109,22 +109,17 @@ about_action (GSimpleAction *action,
version = g_str_equal (VCS_TAG, "") ? version = g_str_equal (VCS_TAG, "") ?
PACKAGE_VERSION : PACKAGE_VERSION "-" VCS_TAG; PACKAGE_VERSION : PACKAGE_VERSION "-" VCS_TAG;
/* adw_show_about_window_from_appdata (GTK_WINDOW (self),
* program-name defaults to g_get_application_name(). "/org/gnome/Calls/org.gnome.Calls.metainfo.xml",
* Dont set it explicitly so that there is one less PACKAGE_VERSION, // must match a release in metainfo.xml
* string to translate. "designers", designers,
*/ "developers", developers,
gtk_show_about_dialog (GTK_WINDOW (self), "developer-name", "The GNOME Project",
"artists", artists, "copyright", "Copyright © 2018 - 2022 Purism",
"authors", authors, "documenters", documenters,
"copyright", "Copyright © 2018 - 2022 Purism", "translator-credits", _("translator-credits"),
"documenters", documenters, "version", version,
"license-type", GTK_LICENSE_GPL_3_0, NULL);
"logo-icon-name", APP_ID,
"translator-credits", _("translator-credits"),
"version", version,
"website", PACKAGE_URL,
NULL);
} }

View file

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