aboutsummaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorTeemu Ikonen <tpikonen@mailbox.org>2022-09-08 12:21:22 +0300
committerMarvin W <git@larma.de>2023-01-24 19:20:42 +0100
commit1ef42b47d22d21600ccf1e2d8b4d80605448660d (patch)
treec3ce4792eb18008c6f381988e5ee069385f2d718 /main
parentf6e73d85c00a60a719da95a048ba2c15712325c3 (diff)
downloaddino-1ef42b47d22d21600ccf1e2d8b4d80605448660d.tar.gz
dino-1ef42b47d22d21600ccf1e2d8b4d80605448660d.zip
Use Adw.Application, make about dialog an Adw.AboutWindow
Diffstat (limited to 'main')
-rw-r--r--main/src/ui/application.vala33
1 files 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 = {"<Ctrl>Q", null};
private const string[] KEY_COMBINATION_ADD_CHAT = {"<Ctrl>T", null};
private const string[] KEY_COMBINATION_ADD_CONFERENCE = {"<Ctrl>G", null};
@@ -272,25 +272,24 @@ public class Dino.Ui.Application : Gtk.Application, Dino.Application {
case "0.3": version = @"$version - <span font_style='italic'>Theikenmeer</span>"; 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) {