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




commit a888154b32f763318687c808ffb375085a9beb3b
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 | 16 +++++++---------
 2 files changed, 8 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..7e1fadb 100644
--- a/src/window.js
+++ b/src/window.js
@@ -169,30 +169,28 @@ var MainWindow = GObject.registerClass({
     }
 
     _about() {
-        const aboutDialog = new Gtk.AboutDialog({
-            artists: [
+        const aboutWindow = new Adw.AboutWindow({
+            application_name: _('Characters'),
+            application_icon: pkg.name,
+            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]