fix tooltips for gpg toggle_button
This commit is contained in:
parent
94c01aeecc
commit
2be42ad322
|
@ -10000,7 +10000,6 @@ JID: whatever@jabber.org</property>
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkEventBox" id="gpg_eventbox">
|
<widget class="GtkEventBox" id="gpg_eventbox">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="tooltip" translatable="yes">Click to toggle OpenPGP encryption</property>
|
|
||||||
<property name="visible_window">True</property>
|
<property name="visible_window">True</property>
|
||||||
<property name="above_child">False</property>
|
<property name="above_child">False</property>
|
||||||
|
|
||||||
|
|
|
@ -87,10 +87,15 @@ class TabbedChatWindow(chat.Chat):
|
||||||
self.set_state_image(jid)
|
self.set_state_image(jid)
|
||||||
contact_button = self.xmls[jid].get_widget('contact_button')
|
contact_button = self.xmls[jid].get_widget('contact_button')
|
||||||
contact_button.set_use_underline(False)
|
contact_button.set_use_underline(False)
|
||||||
|
tb = self.xmls[jid].get_widget('gpg_togglebutton')
|
||||||
if not user.keyID:
|
if not user.keyID:
|
||||||
self.xmls[jid].get_widget('gpg_togglebutton').set_sensitive(False)
|
tb.set_sensitive(False)
|
||||||
|
tt = '%s has not broadcasted an OpenPGP key nor you have assigned one'
|
||||||
else:
|
else:
|
||||||
self.xmls[jid].get_widget('gpg_togglebutton').set_sensitive(True)
|
tb.set_sensitive(True)
|
||||||
|
tt = 'OpenPGP Encryption'
|
||||||
|
tip = gtk.Tooltips()
|
||||||
|
tip.set_tip(self.xmls[jid].get_widget('gpg_eventbox'), tt)
|
||||||
|
|
||||||
# add the fat line at the top
|
# add the fat line at the top
|
||||||
self.draw_name_banner(user.name, jid)
|
self.draw_name_banner(user.name, jid)
|
||||||
|
|
Loading…
Reference in New Issue