diff options
author | Christopher Davis <christopherdavis@gnome.org> | 2022-07-07 17:00:09 -0400 |
---|---|---|
committer | Christopher Davis <christopherdavis@gnome.org> | 2022-07-08 13:57:13 -0400 |
commit | de5a5bc786b647102fac936b6a0471af06d97644 (patch) | |
tree | 8b2c33525168d70066323e015a6c6d5c90effdf8 | |
parent | b1d660653ddaab56c91030946c46b2c065491e1d (diff) | |
download | gnome-font-viewer-de5a5bc786b647102fac936b6a0471af06d97644.tar.gz |
font-view: Port to AdwAboutWindow
-rw-r--r-- | meson.build | 3 | ||||
-rw-r--r-- | src/font-view.c | 14 |
2 files changed, 9 insertions, 8 deletions
diff --git a/meson.build b/meson.build index ac9555f..2dc6d06 100644 --- a/meson.build +++ b/meson.build @@ -24,11 +24,12 @@ thumbnailerdir = join_paths(datadir, 'thumbnailers') glib_req_version = '>= 2.56.0' gtk_req_version = '>= 4.5.0' +libadwaita_req_version = '>= 1.2.alpha' harfbuzz_req_version = '>= 0.9.9' glib_dep = dependency('glib-2.0', version: glib_req_version) gtk_dep = dependency('gtk4', version: gtk_req_version) -libadwaita_dep = dependency('libadwaita-1') +libadwaita_dep = dependency('libadwaita-1', version: libadwaita_req_version) harfbuzz_dep = dependency('harfbuzz', version: harfbuzz_req_version) fontconfig_dep = dependency('fontconfig') freetype2_dep = dependency('freetype2') diff --git a/src/font-view.c b/src/font-view.c index 05b0235..c8934c5 100644 --- a/src/font-view.c +++ b/src/font-view.c @@ -1154,22 +1154,22 @@ action_about (GSimpleAction *action, GVariant *parameter, gpointer user_data) FontViewApplication *self = user_data; // clang-format off - const gchar *authors[] = { + const gchar *developers[] = { "Cosimo Cecchi", "James Henstridge", NULL }; - gtk_show_about_dialog (GTK_WINDOW (self->main_window), + adw_show_about_window (GTK_WINDOW (self->main_window), "version", VERSION, - "authors", authors, - "program-name", _("Fonts"), - "comments", _("View fonts on your system"), + "developers", developers, + "application-name", _("Fonts"), + "application-icon", FONT_VIEW_ICON_NAME, + "developer-name", _("The GNOME Project"), "website", "https://gitlab.gnome.org/GNOME/gnome-font-viewer/", - "logo-icon-name", FONT_VIEW_ICON_NAME, + "issue-url", "https://gitlab.gnome.org/GNOME/gnome-font-viewer/-/issues/new", "translator-credits", _("translator-credits"), "license-type", GTK_LICENSE_GPL_2_0, - "wrap-license", TRUE, NULL); // clang-format on } |