diff options
author | fiaxh <git@mx.ax.lt> | 2017-08-14 13:48:43 +0200 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-08-14 22:38:17 +0200 |
commit | 3ddc53e683b9cdacff7184f3aa805b431edebcdb (patch) | |
tree | 5d9a3ed994ae9193789c7115c294aa9866930074 /plugins/openpgp/src/account_settings_widget.vala | |
parent | b0264b3e0034ddd9ea76d0e13bb4c3c709ba3b3e (diff) | |
download | dino-3ddc53e683b9cdacff7184f3aa805b431edebcdb.tar.gz dino-3ddc53e683b9cdacff7184f3aa805b431edebcdb.zip |
openpgp: contact details provider (fingerprint), colored fingerprints, fix shown availability
Diffstat (limited to 'plugins/openpgp/src/account_settings_widget.vala')
-rw-r--r-- | plugins/openpgp/src/account_settings_widget.vala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/openpgp/src/account_settings_widget.vala b/plugins/openpgp/src/account_settings_widget.vala index 9c21f967..35548c0e 100644 --- a/plugins/openpgp/src/account_settings_widget.vala +++ b/plugins/openpgp/src/account_settings_widget.vala @@ -77,10 +77,10 @@ private class AccountSettingsWidget : Stack, Plugins.AccountSettingsWidget { TreeIter iter; list_store.append(out iter); - list_store.set(iter, 0, build_markup_string(_("Key publishing disabled"), _("Select key")), 1, ""); + list_store.set(iter, 0, build_markup_string(_("Key publishing disabled"), _("Select key") + "<span font_family='monospace' font='8'> \n </span>"), 1, ""); for (int i = 0; i < keys.size; i++) { list_store.append(out iter); - list_store.set(iter, 0, @"$(Markup.escape_text(keys[i].uids[0].uid))\n<span font_family='monospace' font='8'>0x$(Markup.escape_text(keys[i].fpr[0:16]))</span>"); + list_store.set(iter, 0, @"$(Markup.escape_text(keys[i].uids[0].uid))\n<span font_family='monospace' font='8'>$(markup_colorize_id(keys[i].fpr, true))</span><span font='8'> </span>"); list_store.set(iter, 1, keys[i].fpr); if (keys[i].fpr == plugin.db.get_account_key(current_account)) { set_label_active(iter, i + 1); @@ -139,7 +139,7 @@ private class AccountSettingsWidget : Stack, Plugins.AccountSettingsWidget { } private string build_markup_string(string primary, string secondary) { - return @"$(Markup.escape_text(primary))\n<span font='8'>$(Markup.escape_text(secondary))</span>"; + return @"$(Markup.escape_text(primary))\n<span font='8'>$secondary</span>"; } } |