From 2872405f076529be3edb3c6f1a7f878bd00a212e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Apitzsch?= Date: Sat, 7 Oct 2017 21:01:27 +0200 Subject: [PATCH] Fix deprecation warnings --- gajim/dialogs.py | 2 +- gajim/emoticons.py | 6 +++--- gajim/plugins/gui.py | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/gajim/dialogs.py b/gajim/dialogs.py index 385de5a1d..cb9d12cad 100644 --- a/gajim/dialogs.py +++ b/gajim/dialogs.py @@ -422,7 +422,7 @@ class ChangeActivityDialog: hbox = Gtk.HBox(homogeneous=False, spacing=5) hbox.pack_start(gtkgui_helpers.load_activity_icon(category, activity), False, False, 0) - hbox.pack_start(Gtk.Label(pep.ACTIVITIES[category][activity]), + hbox.pack_start(Gtk.Label(label=pep.ACTIVITIES[category][activity]), False, False, 0) rbtns[act].connect('toggled', self.on_rbtn_toggled, [category, activity]) diff --git a/gajim/emoticons.py b/gajim/emoticons.py index 3d086c1e0..f0e6c6ceb 100644 --- a/gajim/emoticons.py +++ b/gajim/emoticons.py @@ -212,7 +212,7 @@ class EmoticonPopover(Gtk.Popover): widget = Gtk.Image() widget.set_from_pixbuf(pix) else: - widget = Gtk.Label(pix) + widget = Gtk.Label(label=pix) flowbox.add(widget) notebook.show_all() @@ -226,7 +226,7 @@ class EmoticonPopover(Gtk.Popover): button.get_child().set_from_pixbuf(pixbuf_list[0]) else: button.remove(button.get_child()) - label = Gtk.Label(pixbuf_list[0]) + label = Gtk.Label(label=pixbuf_list[0]) button.add(label) button.connect('button-press-event', self.on_modifier_press) @@ -247,7 +247,7 @@ class EmoticonPopover(Gtk.Popover): widget = Gtk.Image() widget.set_from_pixbuf(pix) else: - widget = Gtk.Label(pix) + widget = Gtk.Label(label=pix) flowbox.add(widget) flowbox.show_all() diff --git a/gajim/plugins/gui.py b/gajim/plugins/gui.py index 22790b319..454352ea3 100644 --- a/gajim/plugins/gui.py +++ b/gajim/plugins/gui.py @@ -79,7 +79,6 @@ class PluginsWindow(object): self.installed_plugins_model = Gtk.ListStore(object, str, bool, bool, GdkPixbuf.Pixbuf) self.installed_plugins_treeview.set_model(self.installed_plugins_model) - self.installed_plugins_treeview.set_rules_hint(True) renderer = Gtk.CellRendererText() col = Gtk.TreeViewColumn(_('Plugin'))#, renderer, text=Column.NAME)