cleaning UI of TC p1: lamp button (with text it's big, without text it can confuse users very much) is removed in favor of the already there menuitem in actions

This commit is contained in:
Nikos Kouremenos 2005-09-20 11:10:28 +00:00
parent 7c1679eae7
commit 5a6e12e562
2 changed files with 2 additions and 32 deletions

View File

@ -11087,34 +11087,6 @@ Status message</property>
<property name="homogeneous">False</property>
<property name="spacing">6</property>
<child>
<widget class="GtkButton" id="contact_button">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Click to get contact's extended information</property>
<property name="can_focus">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<signal name="clicked" handler="on_contact_button_clicked" last_modification_time="Tue, 07 Jun 2005 19:49:24 GMT"/>
<child>
<widget class="GtkImage" id="image612">
<property name="visible">True</property>
<property name="stock">gtk-dialog-info</property>
<property name="icon_size">4</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkButton" id="actions_button">
<property name="visible">True</property>

View File

@ -113,12 +113,10 @@ timestamp, contact):
contact, path)
def draw_widgets(self, contact):
"""draw the widgets in a tab (status_image, contact_button ...)
"""draw the widgets in a tab (f.e. gpg togglebutton)
according to the the information in the contact variable"""
jid = contact.jid
self.set_state_image(jid)
contact_button = self.xmls[jid].get_widget('contact_button')
contact_button.set_use_underline(False)
tb = self.xmls[jid].get_widget('gpg_togglebutton')
if contact.keyID: # we can do gpg
tb.set_sensitive(True)
@ -682,7 +680,7 @@ timestamp, contact):
message_buffer.set_text('')
self.print_conversation(message, jid, jid, encrypted = encrypted)
def on_contact_button_clicked(self, widget):
def on_contact_information_menuitem_clicked(self, widget):
jid = self.get_active_jid()
contact = self.contacts[jid]
self.plugin.roster.on_info(widget, contact, self.account)