Add 'roster_tooltip_populate' gui extension point

This commit is contained in:
Denis Fomin 2012-11-11 22:03:08 +04:00
parent 6adec9b8e3
commit 4fab3acc2d
1 changed files with 5 additions and 2 deletions

View File

@ -489,7 +489,7 @@ class RosterTooltip(NotificationAreaTooltip):
table_size = 4
else:
self.avatar_image.set_from_pixbuf(None)
vcard_table = gtk.Table(table_size, 1)
vcard_table = gtk.Table(1,table_size)
vcard_table.set_property('column-spacing', 2)
vcard_table.set_homogeneous(False)
vcard_current_row = 1
@ -686,6 +686,9 @@ class RosterTooltip(NotificationAreaTooltip):
if table_size == 4:
vcard_table.attach(self.avatar_image, 3, 4, 2,
vcard_current_row + 1, gtk.FILL, gtk.FILL | gtk.EXPAND, 3, 3)
gajim.plugin_manager.gui_extension_point('roster_tooltip_populate',
self, contacts, vcard_table)
self.win.add(vcard_table)
def update_last_time(self, last_time):