aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2020-10-27 15:31:39 +0100
committerfiaxh <git@lightrise.org>2020-10-27 16:05:30 +0100
commit2e0357877cf3e8e391d3f8f02970defa93c710eb (patch)
tree4478a0deebbedf00934c7a7d6324180c4158bb38 /plugins
parentedbc8f794d42cc30bfbe6602becb43c3500e02a2 (diff)
downloaddino-2e0357877cf3e8e391d3f8f02970defa93c710eb.tar.gz
dino-2e0357877cf3e8e391d3f8f02970defa93c710eb.zip
Fix some compiler warnings
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gpgme-vala/vapi/gpgme.vapi4
-rw-r--r--plugins/omemo/src/plugin.vala2
-rw-r--r--plugins/omemo/src/ui/contact_details_dialog.vala2
3 files changed, 4 insertions, 4 deletions
diff --git a/plugins/gpgme-vala/vapi/gpgme.vapi b/plugins/gpgme-vala/vapi/gpgme.vapi
index f50150a7..8723bd81 100644
--- a/plugins/gpgme-vala/vapi/gpgme.vapi
+++ b/plugins/gpgme-vala/vapi/gpgme.vapi
@@ -454,11 +454,11 @@ namespace GPG {
[CCode (cname = "gpgme_data_new_from_mem")]
- public static GPGError.Error new_from_memory(out Data d, uint8[] buffer, bool copy);
+ public static GPGError.Error new_from_memory(out Data d, char[] buffer, bool copy);
public static Data create_from_memory(uint8[] buffer, bool copy) throws GLib.Error {
Data data;
- throw_if_error(new_from_memory(out data, buffer, copy));
+ throw_if_error(new_from_memory(out data, (char[]) buffer, copy));
return data;
}
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);