Skip to content
Snippets Groups Projects
Commit 5a6e12e5 authored by nkour's avatar nkour
Browse files

cleaning UI of TC p1: lamp button (with text it's big, without text it can...

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
parent 7c1679ea
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
......@@ -113,12 +113,10 @@ def on_drag_data_received(self, widget, context, x, y, selection, target_type,
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 @@ def send_message(self, message):
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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment