align avatar and padlock to to right

This commit is contained in:
Nikos Kouremenos 2005-11-08 14:25:23 +00:00
parent 0b7a740874
commit 51f6e125f6

View file

@ -2199,7 +2199,7 @@ _('If "%s" accepts this request you will know his status.') %jid)
renderer.set_property('xpad', 8) renderer.set_property('xpad', 8)
def fill_secondary_pixbuf_rederer(self, column, renderer, model, iter, data=None): def fill_secondary_pixbuf_rederer(self, column, renderer, model, iter, data=None):
'''When a row is added, set properties for secondary renderer (avatar or tls)''' '''When a row is added, set properties for secondary renderer (avatar or padlock)'''
theme = gajim.config.get('roster_theme') theme = gajim.config.get('roster_theme')
if model[iter][C_TYPE] == 'account': if model[iter][C_TYPE] == 'account':
color = gajim.config.get_per('themes', theme, 'accountbgcolor') color = gajim.config.get_per('themes', theme, 'accountbgcolor')
@ -2213,7 +2213,7 @@ _('If "%s" accepts this request you will know his status.') %jid)
renderer.set_property('cell-background', color) renderer.set_property('cell-background', color)
else: else:
renderer.set_property('cell-background', None) renderer.set_property('cell-background', None)
else: else: # contact
jid = model[iter][C_JID].decode('utf-8') jid = model[iter][C_JID].decode('utf-8')
account = model[iter][C_ACCOUNT].decode('utf-8') account = model[iter][C_ACCOUNT].decode('utf-8')
if jid in gajim.newly_added[account]: if jid in gajim.newly_added[account]:
@ -2226,8 +2226,7 @@ _('If "%s" accepts this request you will know his status.') %jid)
renderer.set_property('cell-background', color) renderer.set_property('cell-background', color)
else: else:
renderer.set_property('cell-background', None) renderer.set_property('cell-background', None)
#renderer.set_property('width', 20) renderer.set_property('xalign', 1) # align pixbuf to the right
#renderer.set_property('xalign', 0)
def get_show(self, luser): def get_show(self, luser):
prio = luser[0].priority prio = luser[0].priority