[gnome-characters/wip/cdavis/about-window] window: Port to AdwAboutWindow




commit babe288c11c870d7ee551cbcde4c066ff3db109b
Author: Christopher Davis <christopherdavis gnome org>
Date:   Thu Jul 7 16:48:30 2022 -0400

    window: Port to AdwAboutWindow

 meson.build   |  2 +-
 src/window.js | 17 ++++++++---------
 2 files changed, 9 insertions(+), 10 deletions(-)
---
diff --git a/meson.build b/meson.build
index b0d08da..02fc3bd 100644
--- a/meson.build
+++ b/meson.build
@@ -46,7 +46,7 @@ endif
 # Just check that gjs-1.0 is present and recent enough
 dependency('gjs-1.0', version: '>= 1.50')
 dependency('gtk4', version: '>=4.6')
-libhandy = dependency ('libadwaita-1', version: '>= 1.0')
+libhandy = dependency ('libadwaita-1', version: '>= 1.2.alpha')
 
 libgc_deps = [
   dependency('gio-2.0'),
diff --git a/src/window.js b/src/window.js
index 37143eb..e214f47 100644
--- a/src/window.js
+++ b/src/window.js
@@ -169,30 +169,29 @@ var MainWindow = GObject.registerClass({
     }
 
     _about() {
-        const aboutDialog = new Gtk.AboutDialog({
-            artists: [
+        const aboutWindow = new Adw.AboutWindow({
+            application_name: _('Characters'),
+            application_icon: pkg.name,
+            developer_name: _('The GNOME Project'),
+            designers: [
                 'Allan Day <allanpday gmail com>',
                 'Jakub Steiner <jimmac gmail com>',
             ],
-            authors: [
+            developers: [
                 'Daiki Ueno <dueno src gnome org>',
                 'Giovanni Campagna <scampa giovanni gmail com>',
             ],
             // TRANSLATORS: put your names here, one name per line.
             translator_credits: _('translator-credits'),
-            program_name: _('GNOME Characters'),
-            comments: _('Character Map'),
             copyright: 'Copyright 2014-2018 Daiki Ueno',
             license_type: Gtk.License.GPL_2_0,
-            logo_icon_name: pkg.name,
             version: pkg.version,
             website: 'https://apps.gnome.org/app/org.gnome.Characters/',
-            wrap_license: true,
-            modal: true,
+            issue_url: 'https://gitlab.gnome.org/GNOME/gnome-characters/-/issues/new',
             transient_for: this,
         });
 
-        aboutDialog.show();
+        aboutWindow.present();
     }
 
     get maxRecentCharacters() {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]