[baobab/wip/cdavis/about-window] window: Port about to AdwAboutWindow
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab/wip/cdavis/about-window] window: Port about to AdwAboutWindow
- Date: Thu, 7 Jul 2022 21:26:39 +0000 (UTC)
commit 83f2b3ac55bff915578f8ff070b86ea458bf70c5
Author: Christopher Davis <christopherdavis gnome org>
Date: Thu Jul 7 17:26:15 2022 -0400
window: Port about to AdwAboutWindow
meson.build | 2 +-
src/baobab-window.vala | 28 +++++++++++++++-------------
2 files changed, 16 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..d2fb041 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,20 @@ 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",
+ 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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]