From 4b1ca7056e6408e62796ea19f916e9520844e6b0 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Sun, 4 Mar 2007 19:49:03 +0100 Subject: [PATCH] Make action-id in MenuItem be object, not int. --- sugar/graphics/menu.py | 3 +-- sugar/graphics/optionmenu.py | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) 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__ = {