diff options
author | Samuel Hand <samuel.hand@openmailbox.org> | 2018-08-09 15:19:02 +0100 |
---|---|---|
committer | Samuel Hand <samuel.hand@openmailbox.org> | 2018-08-09 15:19:02 +0100 |
commit | b5d5a05a1edb701fb6cf6ed471e4ab5d532c0f5e (patch) | |
tree | 8800c8a541789bc842df05ffedcad78add8e5fbb /plugins | |
parent | eb43c4a35deaf20857ab65f5116c37cdebe1eae7 (diff) | |
download | dino-b5d5a05a1edb701fb6cf6ed471e4ab5d532c0f5e.tar.gz dino-b5d5a05a1edb701fb6cf6ed471e4ab5d532c0f5e.zip |
Indentation fixes
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/omemo/src/own_notifications.vala | 10 | ||||
-rw-r--r-- | plugins/omemo/vapi/qrencode.vapi | 52 |
2 files changed, 31 insertions, 31 deletions
diff --git a/plugins/omemo/src/own_notifications.vala b/plugins/omemo/src/own_notifications.vala index df0c4740..e1095c68 100644 --- a/plugins/omemo/src/own_notifications.vala +++ b/plugins/omemo/src/own_notifications.vala @@ -15,14 +15,14 @@ public class OwnNotifications { this.plugin = plugin; this.account = account; stream_interactor.module_manager.get_module(account, StreamModule.IDENTITY).bundle_fetched.connect_after((jid, device_id, bundle) => { - if (jid.equals(account.bare_jid) && has_new_devices(account.bare_jid)) { - display_notification(); - } - }); + if (jid.equals(account.bare_jid) && has_new_devices(account.bare_jid)) { + display_notification(); + } + }); + if (has_new_devices(account.bare_jid)) { display_notification(); } - } public bool has_new_devices(Jid jid) { diff --git a/plugins/omemo/vapi/qrencode.vapi b/plugins/omemo/vapi/qrencode.vapi index 54c201ab..fc77c855 100644 --- a/plugins/omemo/vapi/qrencode.vapi +++ b/plugins/omemo/vapi/qrencode.vapi @@ -3,38 +3,38 @@ using Gdk; [CCode (cheader_filename = "qrencode.h")] namespace Qrencode { - [CCode (cname = "QRecLevel", cprefix = "QR_ECLEVEL_")] - public enum ECLevel { - L, - M, - Q, - H - } + [CCode (cname = "QRecLevel", cprefix = "QR_ECLEVEL_")] + public enum ECLevel { + L, + M, + Q, + H + } - [CCode (cname = "QRencodeMode", cprefix = "QR_MODE_")] - public enum EncodeMode { + [CCode (cname = "QRencodeMode", cprefix = "QR_MODE_")] + public enum EncodeMode { NUL, - NUM, - AN, - [CCode (cname = "QR_MODE_8")] - EIGHT_BIT, - KANJI, - STRUCTURE, + NUM, + AN, + [CCode (cname = "QR_MODE_8")] + EIGHT_BIT, + KANJI, + STRUCTURE, ECI, FNC1FIRST, FNC1SECOND - } + } - [CCode (cname = "QRcode", free_function = "QRcode_free", has_type_id = false)] - [Compact] - public class QRcode { - private int version; - private int width; - [CCode (array_length = false)] - private uint8[] data; + [CCode (cname = "QRcode", free_function = "QRcode_free", has_type_id = false)] + [Compact] + public class QRcode { + private int version; + private int width; + [CCode (array_length = false)] + private uint8[] data; - [CCode (cname = "QRcode_encodeString")] - public QRcode (string str, int version = 0, ECLevel level = ECLevel.L, EncodeMode hint = EncodeMode.EIGHT_BIT, bool casesensitive = true); + [CCode (cname = "QRcode_encodeString")] + public QRcode (string str, int version = 0, ECLevel level = ECLevel.L, EncodeMode hint = EncodeMode.EIGHT_BIT, bool casesensitive = true); public Pixbuf to_pixbuf() { uint8[] bitmap = new uint8[3*width*width]; @@ -46,5 +46,5 @@ namespace Qrencode { } return new Pixbuf.from_data(bitmap, Colorspace.RGB, false, 8, width, width, width*3); } - } + } } |