Fix deprecation warnings

This commit is contained in:
André Apitzsch 2017-10-07 21:01:27 +02:00
parent 3d76559b39
commit 2872405f07
3 changed files with 4 additions and 5 deletions

View File

@ -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])

View File

@ -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()

View File

@ -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)