render_icon -> render_icon_pixbuf
This commit is contained in:
parent
0ee35f0395
commit
3bd8c6e144
|
@ -473,7 +473,8 @@ class FileTransfersWindow:
|
||||||
|
|
||||||
def get_icon(self, ident):
|
def get_icon(self, ident):
|
||||||
return self.images.setdefault(ident,
|
return self.images.setdefault(ident,
|
||||||
self.window.render_icon(self.icons[ident], Gtk.IconSize.MENU))
|
self.window.render_icon_pixbuf(self.icons[ident],
|
||||||
|
Gtk.IconSize.MENU))
|
||||||
|
|
||||||
def set_status(self,file_props, status):
|
def set_status(self,file_props, status):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -91,7 +91,7 @@ class PluginsWindow(object):
|
||||||
self.installed_plugins_treeview.append_column(col)
|
self.installed_plugins_treeview.append_column(col)
|
||||||
|
|
||||||
icon = Gtk.Image()
|
icon = Gtk.Image()
|
||||||
self.def_icon = icon.render_icon(Gtk.STOCK_PREFERENCES,
|
self.def_icon = icon.render_icon_pixbuf(Gtk.STOCK_PREFERENCES,
|
||||||
Gtk.IconSize.MENU)
|
Gtk.IconSize.MENU)
|
||||||
|
|
||||||
# connect signal for selection change
|
# connect signal for selection change
|
||||||
|
|
|
@ -262,9 +262,8 @@ class RosterWindow:
|
||||||
tls_pixbuf = None
|
tls_pixbuf = None
|
||||||
if gajim.account_is_securely_connected(account):
|
if gajim.account_is_securely_connected(account):
|
||||||
# the only way to create a pixbuf from stock
|
# the only way to create a pixbuf from stock
|
||||||
tls_pixbuf = self.window.render_icon(
|
tls_pixbuf = self.window.render_icon_pixbuf(
|
||||||
Gtk.STOCK_DIALOG_AUTHENTICATION,
|
Gtk.STOCK_DIALOG_AUTHENTICATION, Gtk.IconSize.MENU)
|
||||||
Gtk.IconSize.MENU)
|
|
||||||
|
|
||||||
it = self.model.append(None, [
|
it = self.model.append(None, [
|
||||||
gajim.interface.jabber_state_images['16'][show],
|
gajim.interface.jabber_state_images['16'][show],
|
||||||
|
@ -1040,7 +1039,7 @@ class RosterWindow:
|
||||||
if gajim.account_is_securely_connected(account) and not self.regroup or\
|
if gajim.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:
|
||||||
# the only way to create a pixbuf from stock
|
# the only way to create a pixbuf from stock
|
||||||
tls_pixbuf = self.window.render_icon(
|
tls_pixbuf = self.window.render_icon_pixbuf(
|
||||||
Gtk.STOCK_DIALOG_AUTHENTICATION, Gtk.IconSize.MENU)
|
Gtk.STOCK_DIALOG_AUTHENTICATION, Gtk.IconSize.MENU)
|
||||||
self.model[child_iter][C_PADLOCK_PIXBUF] = tls_pixbuf
|
self.model[child_iter][C_PADLOCK_PIXBUF] = tls_pixbuf
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue