Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar3/graphics/palettegroup.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/sugar3/graphics/palettegroup.py')
-rw-r--r--src/sugar3/graphics/palettegroup.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sugar3/graphics/palettegroup.py b/src/sugar3/graphics/palettegroup.py
index 3f39163..cf38927 100644
--- a/src/sugar3/graphics/palettegroup.py
+++ b/src/sugar3/graphics/palettegroup.py
@@ -19,7 +19,7 @@
STABLE.
"""
-import gobject
+from gi.repository import GObject
_groups = {}
@@ -40,15 +40,15 @@ def popdown_all():
group.popdown()
-class Group(gobject.GObject):
+class Group(GObject.GObject):
__gsignals__ = {
- 'popup': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, ([])),
- 'popdown': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, ([])),
+ 'popup': (GObject.SignalFlags.RUN_FIRST, None, ([])),
+ 'popdown': (GObject.SignalFlags.RUN_FIRST, None, ([])),
}
def __init__(self):
- gobject.GObject.__init__(self)
+ GObject.GObject.__init__(self)
self._up = False
self._palettes = []
self._sig_ids = {}