prevent some GTK3 warning

This commit is contained in:
Yann Leboulanger 2014-11-14 09:35:39 +01:00
parent c5c59967be
commit 345dad8988
3 changed files with 6 additions and 12 deletions

View file

@ -1420,9 +1420,9 @@ class HigDialog(Gtk.MessageDialog):
on_response_ok=None, on_response_cancel=None, on_response_yes=None, on_response_ok=None, on_response_cancel=None, on_response_yes=None,
on_response_no=None): on_response_no=None):
self.call_cancel_on_destroy = True self.call_cancel_on_destroy = True
Gtk.MessageDialog.__init__(self, parent, Gtk.MessageDialog.__init__(self, parent=parent,
Gtk.DialogFlags.DESTROY_WITH_PARENT | Gtk.DialogFlags.MODAL, modal=True, destroy_with_parent=True,
type_, buttons, message_format = pritext) message_type=type_, buttons=buttons, text=pritext)
self.format_secondary_markup(sectext) self.format_secondary_markup(sectext)

View file

@ -92,9 +92,7 @@ class PluginsWindow(object):
activatable=ACTIVATABLE) activatable=ACTIVATABLE)
self.installed_plugins_treeview.append_column(col) self.installed_plugins_treeview.append_column(col)
icon = Gtk.Image() self.def_icon = gtkgui_helpers.get_icon_pixmap('preferences-desktop')
self.def_icon = icon.render_icon_pixbuf(Gtk.STOCK_PREFERENCES,
Gtk.IconSize.MENU)
# connect signal for selection change # connect signal for selection change
selection = self.installed_plugins_treeview.get_selection() selection = self.installed_plugins_treeview.get_selection()
@ -312,8 +310,8 @@ class GajimPluginConfigDialog(Gtk.Dialog):
@log_calls('GajimPluginConfigDialog') @log_calls('GajimPluginConfigDialog')
def __init__(self, plugin, **kwargs): def __init__(self, plugin, **kwargs):
Gtk.Dialog.__init__(self, '%s %s'%(plugin.name, _('Configuration')), Gtk.Dialog.__init__(self, title='%s %s'%(plugin.name,
**kwargs) _('Configuration')), **kwargs)
self.plugin = plugin self.plugin = plugin
button = self.add_button('gtk-close', Gtk.ResponseType.CLOSE) button = self.add_button('gtk-close', Gtk.ResponseType.CLOSE)
button.connect('clicked', self.on_close_button_clicked) button.connect('clicked', self.on_close_button_clicked)

View file

@ -447,10 +447,6 @@ class RosterTooltip(NotificationAreaTooltip):
def __init__(self): def __init__(self):
self.account = None 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() self.avatar_image = Gtk.Image()
NotificationAreaTooltip.__init__(self) NotificationAreaTooltip.__init__(self)