Set padlock icon correctly
This commit is contained in:
parent
232dc1dda0
commit
c983b1f50d
1 changed files with 4 additions and 11 deletions
|
@ -260,10 +260,7 @@ class RosterWindow:
|
||||||
|
|
||||||
tls_pixbuf = None
|
tls_pixbuf = None
|
||||||
if app.account_is_securely_connected(account):
|
if app.account_is_securely_connected(account):
|
||||||
tls_pixbuf = gtkgui_helpers.get_icon_pixmap('changes-prevent', 16)
|
tls_pixbuf = 'changes-prevent'
|
||||||
# the only way to create a pixbuf from stock
|
|
||||||
# tls_pixbuf = self.window.render_icon_pixbuf(
|
|
||||||
# Gtk.STOCK_DIALOG_AUTHENTICATION, Gtk.IconSize.MENU)
|
|
||||||
|
|
||||||
it = self.model.append(None, [
|
it = self.model.append(None, [
|
||||||
app.interface.jabber_state_images['16'][show],
|
app.interface.jabber_state_images['16'][show],
|
||||||
|
@ -1048,15 +1045,11 @@ class RosterWindow:
|
||||||
num_of_accounts = app.get_number_of_connected_accounts()
|
num_of_accounts = app.get_number_of_connected_accounts()
|
||||||
num_of_secured = app.get_number_of_securely_connected_accounts()
|
num_of_secured = app.get_number_of_securely_connected_accounts()
|
||||||
|
|
||||||
|
tls_pixbuf = None
|
||||||
if app.account_is_securely_connected(account) and not self.regroup or\
|
if app.account_is_securely_connected(account) and not self.regroup or\
|
||||||
self.regroup and num_of_secured and num_of_secured == num_of_accounts:
|
self.regroup and num_of_secured and num_of_secured == num_of_accounts:
|
||||||
tls_pixbuf = gtkgui_helpers.get_icon_pixmap('changes-prevent', 16)
|
tls_pixbuf = 'changes-prevent'
|
||||||
# the only way to create a pixbuf from stock
|
|
||||||
# tls_pixbuf = self.window.render_icon_pixbuf(
|
|
||||||
# Gtk.STOCK_DIALOG_AUTHENTICATION, Gtk.IconSize.MENU)
|
|
||||||
self.model[child_iter][Column.PADLOCK_PIXBUF] = tls_pixbuf
|
self.model[child_iter][Column.PADLOCK_PIXBUF] = tls_pixbuf
|
||||||
else:
|
|
||||||
self.model[child_iter][Column.PADLOCK_PIXBUF] = empty_pixbuf
|
|
||||||
|
|
||||||
if self.regroup:
|
if self.regroup:
|
||||||
account_name = _('Merged accounts')
|
account_name = _('Merged accounts')
|
||||||
|
@ -5859,7 +5852,7 @@ class RosterWindow:
|
||||||
add_avatar_renderer()
|
add_avatar_renderer()
|
||||||
|
|
||||||
self.renderers_list.append(('padlock', Gtk.CellRendererPixbuf(), False,
|
self.renderers_list.append(('padlock', Gtk.CellRendererPixbuf(), False,
|
||||||
'pixbuf', Column.PADLOCK_PIXBUF,
|
'icon_name', Column.PADLOCK_PIXBUF,
|
||||||
self._fill_padlock_pixbuf_renderer, None))
|
self._fill_padlock_pixbuf_renderer, None))
|
||||||
|
|
||||||
# fill and append column
|
# fill and append column
|
||||||
|
|
Loading…
Add table
Reference in a new issue