diff options
Diffstat (limited to 'src/sugar/graphics/palettegroup.py')
-rw-r--r-- | src/sugar/graphics/palettegroup.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/sugar/graphics/palettegroup.py b/src/sugar/graphics/palettegroup.py index d3bccb5..5f15bde 100644 --- a/src/sugar/graphics/palettegroup.py +++ b/src/sugar/graphics/palettegroup.py @@ -21,8 +21,10 @@ STABLE. import gobject + _groups = {} + def get_group(group_id): if _groups.has_key(group_id): group = _groups[group_id] @@ -32,13 +34,14 @@ def get_group(group_id): return group + class Group(gobject.GObject): + __gsignals__ = { - 'popup' : (gobject.SIGNAL_RUN_FIRST, - gobject.TYPE_NONE, ([])), - 'popdown' : (gobject.SIGNAL_RUN_FIRST, - gobject.TYPE_NONE, ([])) + 'popup': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, ([])), + 'popdown': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, ([])), } + def __init__(self): gobject.GObject.__init__(self) self._up = False |