diff options
author | Christopher Davis <christopherdavis@gnome.org> | 2022-07-07 17:26:15 -0400 |
---|---|---|
committer | Christopher Davis <christopherdavis@gnome.org> | 2022-07-08 13:53:40 -0400 |
commit | e1f1dc2ab727f63fe3d8eb3aa009b3c22c4b16eb (patch) | |
tree | 188c0e448371815cf45e3c2663251ee25ce18018 | |
parent | 22de760a8eeb71e740abae61073d2cbc051d7ea9 (diff) | |
download | baobab-e1f1dc2ab727f63fe3d8eb3aa009b3c22c4b16eb.tar.gz |
window: Port about to AdwAboutWindow
-rw-r--r-- | meson.build | 2 | ||||
-rw-r--r-- | src/baobab-window.vala | 29 |
2 files changed, 17 insertions, 14 deletions
diff --git a/meson.build b/meson.build index fc21f62..b30770e 100644 --- a/meson.build +++ b/meson.build @@ -13,7 +13,7 @@ glib = dependency('glib-2.0', version: '>=2.44') gio = dependency('gio-2.0', version: '>=2.44') gobject = dependency('gobject-2.0', version: '>=2.44') gtk = dependency('gtk4', version: '>=4.4.0') -libhandy = dependency('libadwaita-1', version: '>=1.0.0') +libhandy = dependency('libadwaita-1', version: '>=1.2.alpha') cc = meson.get_compiler('c') math = cc.find_library('m', required: false) diff --git a/src/baobab-window.vala b/src/baobab-window.vala index d3a9d86..9e4d17b 100644 --- a/src/baobab-window.vala +++ b/src/baobab-window.vala @@ -270,7 +270,7 @@ namespace Baobab { } void on_about_activate () { - const string authors[] = { + const string developers[] = { "Ryan Lortie <desrt@desrt.ca>", "Fabio Marzocca <thesaltydog@gmail.com>", "Paolo Borelli <pborelli@gnome.com>", @@ -283,18 +283,21 @@ namespace Baobab { const string copyright = "Copyright \xc2\xa9 2005-2011 Fabio Marzocca, Paolo Borelli, BenoƮt Dejean, Igalia\n" + "Copyright \xc2\xa9 2011-2012 Ryan Lortie, Paolo Borelli, Stefano Facchini\n"; - Gtk.show_about_dialog (this, - "program-name", _("Disk Usage Analyzer"), - "logo-icon-name", "org.gnome.baobab", - "version", Config.VERSION, - "comments", _("A graphical tool to analyze disk usage."), - "website", "https://wiki.gnome.org/action/show/Apps/DiskUsageAnalyzer", - "copyright", copyright, - "license-type", Gtk.License.GPL_2_0, - "wrap-license", false, - "authors", authors, - "translator-credits", _("translator-credits"), - null); + var about = new Adw.AboutWindow() { + transient_for = this, + application_name = _("Disk Usage Analyzer"), + application_icon = "org.gnome.baobab", + developer_name = _("The GNOME Project"), + version = Config.VERSION, + website = "https://wiki.gnome.org/action/show/Apps/DiskUsageAnalyzer", + issue_url = "https://gitlab.gnome.org/GNOME/baobab/-/issues/new", + copyright = copyright, + license_type = Gtk.License.GPL_2_0, + developers = developers, + translator_credits = _("translator-credits"), + }; + + about.present(); } void on_chart_item_activated (Chart chart, Gtk.TreeIter iter) { |