[gnome-font-viewer/wip/cdavis/about-window] font-view: Port to AdwAboutWindow
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-font-viewer/wip/cdavis/about-window] font-view: Port to AdwAboutWindow
- Date: Thu, 7 Jul 2022 21:00:25 +0000 (UTC)
commit 068d35f891793b755c78618b69c05bf08caa6773
Author: Christopher Davis <christopherdavis gnome org>
Date: Thu Jul 7 17:00:09 2022 -0400
font-view: Port to AdwAboutWindow
meson.build | 3 ++-
src/font-view.c | 13 ++++++-------
2 files changed, 8 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..244df16 100644
--- a/src/font-view.c
+++ b/src/font-view.c
@@ -1154,22 +1154,21 @@ 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,
"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
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]