[gnome-tweak-tool] Fix a new round of PyGI deprecation warnings
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweak-tool] Fix a new round of PyGI deprecation warnings
- Date: Mon, 14 Mar 2016 16:08:19 +0000 (UTC)
commit 3d3a8c2d79a95233ffbed18abe19d685eb76fd33
Author: Rui Matos <tiagomatos gmail com>
Date: Mon Mar 14 16:28:39 2016 +0100
Fix a new round of PyGI deprecation warnings
https://bugzilla.gnome.org/show_bug.cgi?id=763558
gtweak/egowrapper.py | 4 ++--
gtweak/tweaks/tweak_group_xkb.py | 2 +-
gtweak/utils.py | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtweak/egowrapper.py b/gtweak/egowrapper.py
index 9657c9b..9d105d2 100644
--- a/gtweak/egowrapper.py
+++ b/gtweak/egowrapper.py
@@ -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)),
}
diff --git a/gtweak/tweaks/tweak_group_xkb.py b/gtweak/tweaks/tweak_group_xkb.py
index 2a0fc88..6548617 100644
--- a/gtweak/tweaks/tweak_group_xkb.py
+++ b/gtweak/tweaks/tweak_group_xkb.py
@@ -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)
diff --git a/gtweak/utils.py b/gtweak/utils.py
index 6e4d701..a291e89 100644
--- a/gtweak/utils.py
+++ b/gtweak/utils.py
@@ -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):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]