render_icon -> render_icon_pixbuf

This commit is contained in:
Yann Leboulanger 2013-07-29 18:29:24 +02:00
parent 0ee35f0395
commit 3bd8c6e144
3 changed files with 6 additions and 6 deletions

View File

@ -473,7 +473,8 @@ class FileTransfersWindow:
def get_icon(self, 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):
"""

View File

@ -91,7 +91,7 @@ class PluginsWindow(object):
self.installed_plugins_treeview.append_column(col)
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)
# connect signal for selection change

View File

@ -262,9 +262,8 @@ class RosterWindow:
tls_pixbuf = None
if gajim.account_is_securely_connected(account):
# the only way to create a pixbuf from stock
tls_pixbuf = self.window.render_icon(
Gtk.STOCK_DIALOG_AUTHENTICATION,
Gtk.IconSize.MENU)
tls_pixbuf = self.window.render_icon_pixbuf(
Gtk.STOCK_DIALOG_AUTHENTICATION, Gtk.IconSize.MENU)
it = self.model.append(None, [
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\
self.regroup and num_of_secured and num_of_secured == num_of_accounts:
# 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)
self.model[child_iter][C_PADLOCK_PIXBUF] = tls_pixbuf
else: