Commit 3d3a8c2d authored by Rui Matos's avatar Rui Matos

Fix a new round of PyGI deprecation warnings

https://bugzilla.gnome.org/show_bug.cgi?id=763558
parent 716e44c8
......@@ -26,9 +26,9 @@ from gi.repository import Soup
class ExtensionsDotGnomeDotOrg(GObject.GObject):
__gsignals__ = {
"got-extensions": (GObject.SIGNAL_RUN_FIRST, GObject.TYPE_NONE,
"got-extensions": (GObject.SignalFlags.RUN_FIRST, GObject.TYPE_NONE,
(GObject.TYPE_PYOBJECT,)),
"got-extension-info": (GObject.SIGNAL_RUN_FIRST, GObject.TYPE_NONE,
"got-extension-info": (GObject.SignalFlags.RUN_FIRST, GObject.TYPE_NONE,
(GObject.TYPE_PYOBJECT,GObject.TYPE_STRING)),
}
......
......@@ -60,7 +60,7 @@ class _XkbOption(Gtk.Expander, Tweak):
for (val, name) in model_values:
self._radios[val] = r = Gtk.RadioButton.new_from_widget(self._radios.get(None))
vbox.add(r)
l = Gtk.Label(name)
l = Gtk.Label(label=name)
l.set_line_wrap(True)
r.add(l)
r._changed_id = r.connect('toggled', self._on_radio_changed)
......
......@@ -241,7 +241,7 @@ class SchemaList:
class DisableExtension(GObject.GObject):
__gsignals__ = {
"disable-extension": (GObject.SIGNAL_RUN_FIRST, GObject.TYPE_NONE,()),
"disable-extension": (GObject.SignalFlags.RUN_FIRST, GObject.TYPE_NONE,()),
}
def __init__(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment