From 2e0357877cf3e8e391d3f8f02970defa93c710eb Mon Sep 17 00:00:00 2001 From: fiaxh Date: Tue, 27 Oct 2020 15:31:39 +0100 Subject: Fix some compiler warnings --- plugins/omemo/src/plugin.vala | 2 +- plugins/omemo/src/ui/contact_details_dialog.vala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/omemo') diff --git a/plugins/omemo/src/plugin.vala b/plugins/omemo/src/plugin.vala index d928994f..e739fc4d 100644 --- a/plugins/omemo/src/plugin.vala +++ b/plugins/omemo/src/plugin.vala @@ -65,7 +65,7 @@ public class Plugin : RootInterface, Object { foreach(Dino.Entities.Account account in this.app.stream_interactor.get_accounts()) { if(account.id == variant.get_int32()) { ContactDetailsDialog dialog = new ContactDetailsDialog(this, account, account.bare_jid); - dialog.set_transient_for((this.app as Gtk.Application).get_active_window()); + dialog.set_transient_for(((Gtk.Application) this.app).get_active_window()); dialog.present(); } } diff --git a/plugins/omemo/src/ui/contact_details_dialog.vala b/plugins/omemo/src/ui/contact_details_dialog.vala index e80d1514..b3f8bc45 100644 --- a/plugins/omemo/src/ui/contact_details_dialog.vala +++ b/plugins/omemo/src/ui/contact_details_dialog.vala @@ -59,7 +59,7 @@ public class ContactDetailsDialog : Gtk.Dialog { this.jid = jid; if (Environment.get_variable("GTK_CSD") != "0") { - (get_header_bar() as HeaderBar).set_subtitle(jid.bare_jid.to_string()); + ((HeaderBar) get_header_bar()).set_subtitle(jid.bare_jid.to_string()); } keys_listbox.row_activated.connect(on_key_entry_clicked); -- cgit v1.2.3-70-g09d2