diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-03-04 18:49:03 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-03-04 18:49:03 (GMT) |
commit | 4b1ca7056e6408e62796ea19f916e9520844e6b0 (patch) | |
tree | cb6c09bf4d072b91826f41384ae9b7ef274bfa6d /sugar/graphics | |
parent | a585221b164ef353634afd407af5d330931e36f4 (diff) |
Make action-id in MenuItem be object, not int.
Diffstat (limited to 'sugar/graphics')
-rw-r--r-- | sugar/graphics/menu.py | 3 | ||||
-rw-r--r-- | 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 2a80c87..0fd9949 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 8580049..335956e 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__ = { |