[gnome-clocks/wip/cdavis/about-window] window: Port to AdwAboutWindow
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks/wip/cdavis/about-window] window: Port to AdwAboutWindow
- Date: Fri, 8 Jul 2022 18:00:38 +0000 (UTC)
commit db5df98235b23a3cb5928bec8eb4cf54a094bb9c
Author: Christopher Davis <christopherdavis gnome org>
Date: Thu Jul 7 17:17:41 2022 -0400
window: Port to AdwAboutWindow
meson.build | 2 +-
src/window.vala | 30 ++++++++++++++++--------------
2 files changed, 17 insertions(+), 15 deletions(-)
---
diff --git a/meson.build b/meson.build
index 3596dea0..3fc99aad 100644
--- a/meson.build
+++ b/meson.build
@@ -23,7 +23,7 @@ else
endif
gnomedesktop = dependency('gnome-desktop-4')
libgeoclue = dependency('libgeoclue-2.0', version: '>=2.4')
-libadwaita = dependency ('libadwaita-1', version: '>=1.0')
+libadwaita = dependency ('libadwaita-1', version: '>=1.2.alpha')
cc = meson.get_compiler('c')
math = cc.find_library('m', required: false)
diff --git a/src/window.vala b/src/window.vala
index ae945225..0f2cfbab 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -257,9 +257,9 @@ public class Window : Adw.ApplicationWindow {
const string COPYRIGHT = "Copyright \xc2\xa9 2011 Collabora Ltd.\n" +
"Copyright \xc2\xa9 2012-2013 Collabora Ltd., Seif Lotfy, Emily Gonyer\n" +
"Eslam Mostafa, Paolo Borelli, Volker Sobek\n" +
- "Copyright \xc2\xa9 2019-2020 Bilal Elmoussaoui & Zander Brown et al";
+ "Copyright \xc2\xa9 2019-2020 Bilal Elmoussaoui & Zander Brown et al";
- const string? AUTHORS[] = {
+ const string? DEVELOPERS[] = {
"Alex Anthony",
"Paolo Borelli",
"Allan Day",
@@ -278,18 +278,20 @@ public class Window : Adw.ApplicationWindow {
null
};
- var program_name = Config.NAME_PREFIX + _("Clocks");
- Gtk.show_about_dialog (this,
- "program-name", program_name,
- "logo-icon-name", Config.APP_ID,
- "version", Config.VERSION,
- "comments", _("Utilities to help you with the time."),
- "copyright", COPYRIGHT,
- "authors", AUTHORS,
- "license-type", Gtk.License.GPL_2_0,
- "wrap-license", false,
- "translator-credits", _("translator-credits"),
- null);
+ var about = new Adw.AboutWindow () {
+ transient_for = this,
+ application_name = _("Clocks"),
+ application_icon = Config.APP_ID,
+ developer_name = _("The GNOME Project"),
+ version = Config.VERSION,
+ copyright = COPYRIGHT,
+ developers = DEVELOPERS,
+ issue_url = "https://gitlab.gnome.org/GNOME/gnome-clocks/-/issues/new",
+ license_type = Gtk.License.GPL_2_0,
+ translator_credits = _("translator-credits")
+ };
+
+ about.present ();
}
[GtkCallback]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]