From 3bd8c6e1449745c191c03844bf25612e08df929d Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 29 Jul 2013 18:29:24 +0200 Subject: [PATCH] render_icon -> render_icon_pixbuf --- src/filetransfers_window.py | 3 ++- src/plugins/gui.py | 2 +- src/roster_window.py | 7 +++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/filetransfers_window.py b/src/filetransfers_window.py index 71c2c36f0..6f8be7c6f 100644 --- a/src/filetransfers_window.py +++ b/src/filetransfers_window.py @@ -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): """ diff --git a/src/plugins/gui.py b/src/plugins/gui.py index 16d907501..0f3fe8471 100644 --- a/src/plugins/gui.py +++ b/src/plugins/gui.py @@ -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 diff --git a/src/roster_window.py b/src/roster_window.py index 0ba258ee2..d5320a078 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -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: