add verified/not verified title text to the body of the esession dialog

This commit is contained in:
Brendan Taylor 2008-09-12 05:25:10 +00:00
parent 887fd9f374
commit f640e7c860
2 changed files with 43 additions and 30 deletions

View File

@ -27,41 +27,40 @@
<property name="homogeneous">False</property>
<property name="spacing">2</property>
<child>
<widget class="GtkHBox" id="hbox4">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">4</property>
<child>
<widget class="GtkVBox" id="vbox2">
<widget class="GtkHBox" id="title-hbox">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkImage" id="security_image">
<property name="width_request">32</property>
<property name="height_request">32</property>
<property name="visible">True</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">True</property>
</packing>
<widget class="GtkImage" id="security_image">
<property name="width_request">32</property>
<property name="height_request">32</property>
<property name="visible">True</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
<packing>
<property name="expand">False</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">True</property>
</packing>
<child>
<widget class="GtkLabel" id="verification_status_label">
<property name="visible">True</property>
<property name="xalign">0</property>
</widget>
</child>
</widget>
</child>
<child>
<widget class="GtkHBox" id="hbox4">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">4</property>
<child>
<widget class="GtkLabel" id="info_display">

View File

@ -3827,8 +3827,15 @@ class ESessionInfoWindow:
if self.session.control:
self.session.control._show_lock_image(True, 'E2E', True,
self.session.is_loggable(), True)
self.window.set_title(_('''Contact's identity verified'''))
self.xml.get_widget('dialog-action_area1').set_no_show_all(True)
verification_status = _('''Contact's identity verified''')
self.window.set_title(verification_status)
self.xml.get_widget('verification_status_label').set_markup(
'<b><span size="x-large">' +
verification_status +
'</span></b>')
self.xml.get_widget('dialog-action_area1').set_no_show_all(True)
self.button_label.set_text(_('Verify again...'))
else:
if self.session.control:
@ -3836,7 +3843,14 @@ class ESessionInfoWindow:
self.session.is_loggable(), False)
labeltext += '\n\n' + _('''To be certain that <b>only</b> the expected person can read your messages or send you messages, you need to verify their identity by clicking the button below.''')
security_image = 'security-low-big.png'
self.window.set_title(_('''Contact's identity NOT verified'''))
verification_status = _('''Contact's identity NOT verified''')
self.window.set_title(verification_status)
self.xml.get_widget('verification_status_label').set_markup(
'<b><span size="x-large">' +
verification_status +
'</span></b>')
self.button_label.set_text(_('Verify...'))
path = os.path.join(dir, security_image)