changeset ae93640b7612 in /home/hg/repos/gajim
author: Yann Leboulanger asterix@lagaule.org branches: details:http://hg.gajim.org/gajim?cmd=changeset;node=ae93640b7612 description: prevent some GTK3 warning
diffstat:
src/dialogs.py | 6 +++--- src/plugins/gui.py | 8 +++----- src/tooltips.py | 4 ---- 3 files changed, 6 insertions(+), 12 deletions(-)
diffs (55 lines):
diff -r a631e38063b4 -r ae93640b7612 src/dialogs.py --- a/src/dialogs.py Tue Nov 11 23:11:15 2014 +0100 +++ b/src/dialogs.py Fri Nov 14 09:35:39 2014 +0100 @@ -1420,9 +1420,9 @@ on_response_ok=None, on_response_cancel=None, on_response_yes=None, on_response_no=None): self.call_cancel_on_destroy = True - Gtk.MessageDialog.__init__(self, parent, - Gtk.DialogFlags.DESTROY_WITH_PARENT | Gtk.DialogFlags.MODAL, - type_, buttons, message_format = pritext) + Gtk.MessageDialog.__init__(self, parent=parent, + modal=True, destroy_with_parent=True, + message_type=type_, buttons=buttons, text=pritext)
self.format_secondary_markup(sectext)
diff -r a631e38063b4 -r ae93640b7612 src/plugins/gui.py --- a/src/plugins/gui.py Tue Nov 11 23:11:15 2014 +0100 +++ b/src/plugins/gui.py Fri Nov 14 09:35:39 2014 +0100 @@ -92,9 +92,7 @@ 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 @@
@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) diff -r a631e38063b4 -r ae93640b7612 src/tooltips.py --- a/src/tooltips.py Tue Nov 11 23:11:15 2014 +0100 +++ b/src/tooltips.py Fri Nov 14 09:35:39 2014 +0100 @@ -447,10 +447,6 @@
def __init__(self): self.account = None - self.image = Gtk.Image() - self.image.set_alignment(0, 0) - # padding is independent of the total length and better than alignment - self.image.set_padding(1, 2) self.avatar_image = Gtk.Image() NotificationAreaTooltip.__init__(self)