Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Fomin <fominde@gmail.com>2012-11-12 23:17:18 +0400
committerDenis Fomin <fominde@gmail.com>2012-11-12 23:17:18 +0400
commit681a56d1c4fffca98d381198b2a7a8b8ae543d24 (patch)
tree51de4294993c0020d2c4767edb43f43a71945de8 /clients_icons
parent43ef2e04e34529ff1cd956cac184e440fc339c4a (diff)
ClientsIconsPlugin. Do not expand clients info in tooltips
Diffstat (limited to 'clients_icons')
-rw-r--r--clients_icons/clients_icons.py19
1 files changed, 6 insertions, 13 deletions
diff --git a/clients_icons/clients_icons.py b/clients_icons/clients_icons.py
index 3467257..f278e38 100644
--- a/clients_icons/clients_icons.py
+++ b/clients_icons/clients_icons.py
@@ -197,10 +197,6 @@ class ClientsIconsPlugin(GajimPlugin):
if not self.config['show_in_tooltip']:
return
- vertical_fill = gtk.FILL
- if vcard_table.get_property('n-columns') == 4:
- vertical_fill |= gtk.EXPAND
-
#fill clients table
self.table = gtk.Table(4, 1)
self.table.set_property('column-spacing', 2)
@@ -210,21 +206,21 @@ class ClientsIconsPlugin(GajimPlugin):
caps_image , client_name = self.get_icon(caps, contact)
caps_image.set_alignment(0, 0)
self.table.attach(caps_image, 1, 2, vcard_current_row,
- vcard_current_row + 1, gtk.FILL, gtk.FILL, 0, 0)
+ vcard_current_row + 1, 0, 0, 0, 0)
label = gtk.Label()
label.set_alignment(0, 0)
label.set_markup(client_name)
self.table.attach(label, 2, 3, vcard_current_row,
- vcard_current_row + 1, gtk.FILL | gtk.EXPAND, 0, 0, 0)
+ vcard_current_row + 1, 0, 0, 0, 0)
# set label
label = gtk.Label()
label.set_alignment(0, 0)
label.set_markup(_('Client:'))
vcard_table.attach(label, 1, 2, vcard_current_row,
- vcard_current_row + 1, gtk.FILL, gtk.FILL | gtk.EXPAND, 0, 0)
+ vcard_current_row + 1, gtk.FILL, gtk.FILL, 0, 0)
# set client table to tooltip
vcard_table.attach(self.table, 2, 3, vcard_current_row,
- vcard_current_row + 1, gtk.FILL, vertical_fill, 0, 0)
+ vcard_current_row + 1, gtk.FILL, gtk.FILL, 0, 0)
# rewrite avatar
if vcard_table.get_property('n-columns') == 4:
@@ -242,9 +238,6 @@ class ClientsIconsPlugin(GajimPlugin):
return
if len(contacts) == 1 and contacts[0].jid in gajim.get_our_jids():
return
- vertical_fill = gtk.FILL
- if vcard_table.get_property('n-columns') == 4:
- vertical_fill |= gtk.EXPAND
# put contacts in dict, where key is priority
num_resources = 0
@@ -288,10 +281,10 @@ class ClientsIconsPlugin(GajimPlugin):
return
label.set_markup(_('Client:'))
vcard_table.attach(label, 1, 2, first_place,
- first_place + 1, gtk.FILL, gtk.FILL | gtk.EXPAND, 0, 0)
+ first_place + 1, gtk.FILL, gtk.FILL, 0, 0)
# set clients table to tooltip
vcard_table.attach(self.table, 2, 3, first_place, first_place + 1,
- gtk.FILL, vertical_fill, 0, 0)
+ gtk.FILL, gtk.FILL, 0, 0)
# rewrite avatar
if vcard_table.get_property('n-columns') == 4: