changeset 089737a2ec09 in /home/hg/repos/gajim-plugins
author: lovetox <forenjunkie(a)chello.at>
branches:
details:gajim-plugins?cmd=changeset;node=089737a2ec09
description: Add own device id to the config window
diffstat:
omemo/config_dialog.ui | 44 +++++++++++++++++++++++++++++++++++++++++++-
omemo/ui.py | 3 +++
2 files changed, 46 insertions(+), 1 deletions(-)
diffs (78 lines):
diff -r d34e0424be2f -r 089737a2ec09 omemo/config_dialog.ui
--- a/omemo/config_dialog.ui Mon Aug 22 10:14:15 2016 +0200
+++ b/omemo/config_dialog.ui Mon Aug 22 11:18:54 2016 +0200
@@ -83,11 +83,12 @@
<object class="GtkHBox" id="hbox1">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="spacing">5</property>
<child>
<object class="GtkLabel" id="fingerprint_label_desc">
+ <property name="width_request">110</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="xalign">0</property>
<property name="label" translatable="yes" comments="Descriptive label">Own Fingerprint:</property>
<attributes>
<attribute name="weight" value="bold"/>
@@ -120,6 +121,47 @@
<property name="position">1</property>
</packing>
</child>
+ <child>
+ <object class="GtkHBox" id="hbox5">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkLabel" id="OwnIDLabel">
+ <property name="width_request">110</property>
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">Own Device ID:</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="ID">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">0</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
</object>
</child>
<child type="tab">
diff -r d34e0424be2f -r 089737a2ec09 omemo/ui.py
--- a/omemo/ui.py Mon Aug 22 10:14:15 2016 +0200
+++ b/omemo/ui.py Mon Aug 22 11:18:54 2016 +0200
@@ -382,6 +382,9 @@
account = self.account_store[active][0]
state = self.plugin.get_omemo_state(account)
+ deviceid = state.own_device_id
+ self.B.get_object('ID').set_markup('<tt>%s</tt>' % deviceid)
+
ownfpr = binascii.hexlify(state.store.getIdentityKeyPair()
.getPublicKey().serialize())
ownfpr = self.human_hash(ownfpr[2:])