aboutsummaryrefslogtreecommitdiff
path: root/plugins/omemo/src/contact_details_provider.vala
diff options
context:
space:
mode:
authorSamuel Hand <samuel.hand@openmailbox.org>2018-08-10 00:45:22 +0100
committerSamuel Hand <samuel.hand@openmailbox.org>2018-08-10 00:45:22 +0100
commit36cc8b039338442512f0e86d9487d951b5f2c6e3 (patch)
tree0313a349ed15b31a68fd657f07fae9810579c6f1 /plugins/omemo/src/contact_details_provider.vala
parente1afda10e33bdd892ee655cda7b94c066d269817 (diff)
downloaddino-36cc8b039338442512f0e86d9487d951b5f2c6e3.tar.gz
dino-36cc8b039338442512f0e86d9487d951b5f2c6e3.zip
Code cleanup - move long database queries to their own functions and improve variable names
Diffstat (limited to 'plugins/omemo/src/contact_details_provider.vala')
-rw-r--r--plugins/omemo/src/contact_details_provider.vala6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/omemo/src/contact_details_provider.vala b/plugins/omemo/src/contact_details_provider.vala
index 1cf635c2..4b919009 100644
--- a/plugins/omemo/src/contact_details_provider.vala
+++ b/plugins/omemo/src/contact_details_provider.vala
@@ -25,11 +25,7 @@ public class ContactDetailsProvider : Plugins.ContactDetailsProvider, Object {
}
if (i > 0) {
- Button btn = new Button();
- btn.image = new Image.from_icon_name("view-list-symbolic", IconSize.BUTTON);
- btn.relief = ReliefStyle.NONE;
- btn.visible = true;
- btn.valign = Align.CENTER;
+ Button btn = new Button.from_icon_name("view-list-symbolic") { visible = true, valign = Align.CENTER, relief = ReliefStyle.NONE };
btn.clicked.connect(() => {
btn.activate();
ContactDetailsDialog dialog = new ContactDetailsDialog(plugin, conversation.account, conversation.counterpart);