diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2014-11-14 11:35:39 +0300 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2014-11-14 11:35:39 +0300 |
commit | 345dad89885c2884a859ffbbd3fe3fd4937737d1 (patch) | |
tree | 4401f774643f2aefa2150066a3f13440e593fd60 /src/plugins | |
parent | c5c59967beddadc21d586982c6b783d065c3224d (diff) |
prevent some GTK3 warning
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/gui.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/gui.py b/src/plugins/gui.py index bc99e52cf..612704a40 100644 --- a/src/plugins/gui.py +++ b/src/plugins/gui.py @@ -92,9 +92,7 @@ class PluginsWindow(object): activatable=ACTIVATABLE) self.installed_plugins_treeview.append_column(col) - icon = Gtk.Image() - self.def_icon = icon.render_icon_pixbuf(Gtk.STOCK_PREFERENCES, - Gtk.IconSize.MENU) + self.def_icon = gtkgui_helpers.get_icon_pixmap('preferences-desktop') # connect signal for selection change selection = self.installed_plugins_treeview.get_selection() @@ -312,8 +310,8 @@ class GajimPluginConfigDialog(Gtk.Dialog): @log_calls('GajimPluginConfigDialog') def __init__(self, plugin, **kwargs): - Gtk.Dialog.__init__(self, '%s %s'%(plugin.name, _('Configuration')), - **kwargs) + Gtk.Dialog.__init__(self, title='%s %s'%(plugin.name, + _('Configuration')), **kwargs) self.plugin = plugin button = self.add_button('gtk-close', Gtk.ResponseType.CLOSE) button.connect('clicked', self.on_close_button_clicked) |