From 1ef42b47d22d21600ccf1e2d8b4d80605448660d Mon Sep 17 00:00:00 2001 From: Teemu Ikonen Date: Thu, 8 Sep 2022 12:21:22 +0300 Subject: Use Adw.Application, make about dialog an Adw.AboutWindow --- main/src/ui/application.vala | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/main/src/ui/application.vala b/main/src/ui/application.vala index 2167145b..b810852c 100644 --- a/main/src/ui/application.vala +++ b/main/src/ui/application.vala @@ -4,7 +4,7 @@ using Dino.Entities; using Dino.Ui; using Xmpp; -public class Dino.Ui.Application : Gtk.Application, Dino.Application { +public class Dino.Ui.Application : Adw.Application, Dino.Application { private const string[] KEY_COMBINATION_QUIT = {"Q", null}; private const string[] KEY_COMBINATION_ADD_CHAT = {"T", null}; private const string[] KEY_COMBINATION_ADD_CONFERENCE = {"G", null}; @@ -272,25 +272,24 @@ public class Dino.Ui.Application : Gtk.Application, Dino.Application { case "0.3": version = @"$version - Theikenmeer"; break; } } - Gtk.AboutDialog dialog = new Gtk.AboutDialog(); - dialog.destroy_with_parent = true; - dialog.transient_for = window; - dialog.modal = true; - dialog.title = _("About Dino"); - - dialog.logo_icon_name = "im.dino.Dino"; - dialog.program_name = "Dino"; - dialog.version = version; - dialog.comments = "Dino. Communicating happiness."; - dialog.website = "https://dino.im/"; - dialog.website_label = "dino.im"; - dialog.copyright = "Copyright © 2016-2022 - Dino Team"; - dialog.license_type = License.GPL_3_0; + Adw.AboutWindow about = new Adw.AboutWindow(); + about.destroy_with_parent = true; + about.transient_for = window; + about.modal = true; + about.title = _("About Dino"); + + about.application_icon = "im.dino.Dino"; + about.application_name = "Dino"; + about.version = version; + about.comments = "Dino. Communicating happiness."; + about.website = "https://dino.im/"; + about.copyright = "Copyright © 2016-2022 - Dino Team"; + about.license_type = License.GPL_3_0; if (!use_csd()) { - dialog.set_titlebar(null); + about.set_titlebar(null); } - dialog.present(); + about.present(); } private void show_join_muc_dialog(Account? account, string jid) { -- cgit v1.2.3-70-g09d2