Use Adw.Application, make about dialog an Adw.AboutWindow
This commit is contained in:
parent
f6e73d85c0
commit
1ef42b47d2
|
@ -4,7 +4,7 @@ using Dino.Entities;
|
||||||
using Dino.Ui;
|
using Dino.Ui;
|
||||||
using Xmpp;
|
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_QUIT = {"<Ctrl>Q", null};
|
||||||
private const string[] KEY_COMBINATION_ADD_CHAT = {"<Ctrl>T", null};
|
private const string[] KEY_COMBINATION_ADD_CHAT = {"<Ctrl>T", null};
|
||||||
private const string[] KEY_COMBINATION_ADD_CONFERENCE = {"<Ctrl>G", 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;
|
case "0.3": version = @"$version - <span font_style='italic'>Theikenmeer</span>"; break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Gtk.AboutDialog dialog = new Gtk.AboutDialog();
|
Adw.AboutWindow about = new Adw.AboutWindow();
|
||||||
dialog.destroy_with_parent = true;
|
about.destroy_with_parent = true;
|
||||||
dialog.transient_for = window;
|
about.transient_for = window;
|
||||||
dialog.modal = true;
|
about.modal = true;
|
||||||
dialog.title = _("About Dino");
|
about.title = _("About Dino");
|
||||||
|
|
||||||
dialog.logo_icon_name = "im.dino.Dino";
|
about.application_icon = "im.dino.Dino";
|
||||||
dialog.program_name = "Dino";
|
about.application_name = "Dino";
|
||||||
dialog.version = version;
|
about.version = version;
|
||||||
dialog.comments = "Dino. Communicating happiness.";
|
about.comments = "Dino. Communicating happiness.";
|
||||||
dialog.website = "https://dino.im/";
|
about.website = "https://dino.im/";
|
||||||
dialog.website_label = "dino.im";
|
about.copyright = "Copyright © 2016-2022 - Dino Team";
|
||||||
dialog.copyright = "Copyright © 2016-2022 - Dino Team";
|
about.license_type = License.GPL_3_0;
|
||||||
dialog.license_type = License.GPL_3_0;
|
|
||||||
|
|
||||||
if (!use_csd()) {
|
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) {
|
private void show_join_muc_dialog(Account? account, string jid) {
|
||||||
|
|
Loading…
Reference in a new issue