diff --git a/sugar/graphics/menu.py b/sugar/graphics/menu.py index 2a80c878..0fd99495 100644 --- a/sugar/graphics/menu.py +++ b/sugar/graphics/menu.py @@ -31,8 +31,7 @@ class MenuItem(hippo.CanvasBox): __gtype_name__ = 'SugarMenuItem' __gproperties__ = { - 'action-id': (int, None, None, - 0, sys.maxint, 0, + 'action-id': (object, None, None, gobject.PARAM_READWRITE), 'label' : (str, None, None, None, gobject.PARAM_READWRITE) diff --git a/sugar/graphics/optionmenu.py b/sugar/graphics/optionmenu.py index 85800494..335956e9 100644 --- a/sugar/graphics/optionmenu.py +++ b/sugar/graphics/optionmenu.py @@ -50,7 +50,8 @@ class OptionMenu(hippo.CanvasBox, hippo.CanvasItem): __gtype_name__ = 'SugarOptionMenu' __gproperties__ = { - 'value' : (int, None, None, 0, sys.maxint, 1, gobject.PARAM_READWRITE) + 'value' : (object, None, None, + gobject.PARAM_READWRITE) } __gsignals__ = {