From 7e6668d283194538d53a3b04708807564e591e22 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Sat, 10 Nov 2018 17:24:48 +0100 Subject: Use QR-code icon for OMEMO QR-code button --- main/CMakeLists.txt | 2 ++ main/data/icons/dino-qr-code-symbolic.svg | 4 ++++ plugins/omemo/data/contact_details_dialog.ui | 5 ++--- plugins/omemo/src/contact_details_dialog.vala | 3 +++ 4 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 main/data/icons/dino-qr-code-symbolic.svg diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt index 2f1e082b..65d547c6 100644 --- a/main/CMakeLists.txt +++ b/main/CMakeLists.txt @@ -14,6 +14,7 @@ find_packages(MAIN_PACKAGES REQUIRED set(RESOURCE_LIST icons/dino-changes-prevent-symbolic.svg icons/dino-double-tick-symbolic.svg + icons/dino-qr-code-symbolic.svg icons/dino-status-away.svg icons/dino-status-chat.svg icons/dino-status-dnd.svg @@ -161,6 +162,7 @@ install(FILES data/icons/dino-changes-prevent-symbolic.svg data/icons/dino-double-tick-symbolic.svg + data/icons/dino-qr-code-symbolic.svg data/icons/dino-tick-symbolic.svg DESTINATION ${ICON_INSTALL_DIR}/hicolor/scalable/status diff --git a/main/data/icons/dino-qr-code-symbolic.svg b/main/data/icons/dino-qr-code-symbolic.svg new file mode 100644 index 00000000..0465fac3 --- /dev/null +++ b/main/data/icons/dino-qr-code-symbolic.svg @@ -0,0 +1,4 @@ + + + + diff --git a/plugins/omemo/data/contact_details_dialog.ui b/plugins/omemo/data/contact_details_dialog.ui index dc97cb56..c16d8b46 100644 --- a/plugins/omemo/data/contact_details_dialog.ui +++ b/plugins/omemo/data/contact_details_dialog.ui @@ -45,7 +45,7 @@ - + True 1 True @@ -136,8 +136,7 @@ True - end - camera-photo-symbolic + dino-qr-code-symbolic 1 diff --git a/plugins/omemo/src/contact_details_dialog.vala b/plugins/omemo/src/contact_details_dialog.vala index c61d75c2..1865c5f0 100644 --- a/plugins/omemo/src/contact_details_dialog.vala +++ b/plugins/omemo/src/contact_details_dialog.vala @@ -17,6 +17,7 @@ public class ContactDetailsDialog : Gtk.Dialog { private bool own = false; private int own_id = 0; + [GtkChild] private Label automatically_accept_new_descr; [GtkChild] private Box own_fingerprint_container; [GtkChild] private Label own_fingerprint_label; [GtkChild] private Box new_keys_container; @@ -46,6 +47,8 @@ public class ContactDetailsDialog : Gtk.Dialog { own = true; own_id = plugin.db.identity.row_with(plugin.db.identity.account_id, account.id)[plugin.db.identity.device_id]; + automatically_accept_new_descr.label = _("When you add new encryption keys to your account, automatically accept them."); + own_fingerprint_container.visible = true; string own_b64 = plugin.db.identity.row_with(plugin.db.identity.account_id, account.id)[plugin.db.identity.identity_key_public_base64]; -- cgit v1.2.3-70-g09d2