more tooltips in chat control

This commit is contained in:
Yann Leboulanger 2013-07-24 10:06:58 +02:00
parent 2d075e13cf
commit e388b94796
2 changed files with 2 additions and 3 deletions

View File

@ -449,7 +449,6 @@
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="has_tooltip">True</property>
<property name="tooltip_text" translatable="yes">Toggle audio session</property>
<property name="use_action_appearance">False</property>
<property name="relief">none</property>
<child>
@ -473,7 +472,6 @@
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="has_tooltip">True</property>
<property name="tooltip_text" translatable="yes">Toggle video session</property>
<property name="use_action_appearance">False</property>
<property name="relief">none</property>
<child>
@ -732,6 +730,7 @@ audio-mic-volume-low</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="tooltip_text" translatable="yes">Send message</property>
<property name="use_action_appearance">False</property>
<child>
<object class="GtkAlignment" id="alignment102">

View File

@ -1837,7 +1837,7 @@ class ChatControl(ChatControlBase):
self.contact.supports(NS_JINGLE_FILE_TRANSFER)) or \
self.type_id == 'chat' or self.gc_contact.resource:
self._send_file_button.set_sensitive(True)
self._send_file_button.set_tooltip_text('')
self._send_file_button.set_tooltip_text(_('Send files'))
else:
self._send_file_button.set_sensitive(False)
if not (self.contact.supports(NS_FILE) or self.contact.supports(NS_JINGLE_FILE_TRANSFER)):