From edb9d4634d2587c6a030a4910ef6141a7500910a Mon Sep 17 00:00:00 2001 From: Christopher Davis Date: Thu, 7 Jul 2022 18:55:16 -0400 Subject: application: Port about to AdwAboutWindow --- meson.build | 2 +- src/gl-application.c | 19 +++++++++++-------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/meson.build b/meson.build index 31d6731..ad9fb97 100644 --- a/meson.build +++ b/meson.build @@ -63,7 +63,7 @@ endif gl_deps = [ dependency('gio-unix-2.0', version : '>=2.43.90'), dependency('gtk4', version : '>=4.6.0'), - dependency('libadwaita-1', version : '>=1.0.0'), + dependency('libadwaita-1', version : '>=1.2.alpha'), dependency('libsystemd') ] diff --git a/src/gl-application.c b/src/gl-application.c index 57c5092..2067239 100644 --- a/src/gl-application.c +++ b/src/gl-application.c @@ -90,12 +90,12 @@ on_about (GSimpleAction *action, { GtkApplication *application; GtkWindow *parent; - static const gchar* artists[] = { + static const gchar* designers[] = { "Jakub Steiner ", "Lapo Calamandrei ", NULL }; - static const gchar* authors[] = { + static const gchar* developers[] = { "David King ", "Jonathan Kang ", NULL @@ -103,16 +103,19 @@ on_about (GSimpleAction *action, application = GTK_APPLICATION (user_data); parent = gtk_application_get_active_window (GTK_APPLICATION (application)); - gtk_show_about_dialog (parent, - "authors", authors, - "artists", artists, + adw_show_about_window (parent, + "application-name", _("Logs"), + "application-icon", "org.gnome.Logs", + "developer-name", _("The GNOME Project"), + "developers", developers, + "designers", designers, "translator-credits", _("translator-credits"), - "comments", _("View and search logs"), "copyright", "Copyright © 2013–2015 Red Hat, Inc.\nCopyright © 2014-2015 Jonathan Kang", "license-type", GTK_LICENSE_GPL_3_0, - "logo-icon-name", "org.gnome.Logs", "version", PACKAGE_VERSION, - "website", PACKAGE_URL, NULL); + "website", PACKAGE_URL, + "issue-url", "https://gitlab.gnome.org/GNOME/gnome-logs/-/issues/new", + NULL); } static void -- cgit v1.2.1