Make action-id in MenuItem be object, not int.
This commit is contained in:
parent
a585221b16
commit
4b1ca7056e
@ -31,8 +31,7 @@ class MenuItem(hippo.CanvasBox):
|
|||||||
__gtype_name__ = 'SugarMenuItem'
|
__gtype_name__ = 'SugarMenuItem'
|
||||||
|
|
||||||
__gproperties__ = {
|
__gproperties__ = {
|
||||||
'action-id': (int, None, None,
|
'action-id': (object, None, None,
|
||||||
0, sys.maxint, 0,
|
|
||||||
gobject.PARAM_READWRITE),
|
gobject.PARAM_READWRITE),
|
||||||
'label' : (str, None, None, None,
|
'label' : (str, None, None, None,
|
||||||
gobject.PARAM_READWRITE)
|
gobject.PARAM_READWRITE)
|
||||||
|
@ -50,7 +50,8 @@ class OptionMenu(hippo.CanvasBox, hippo.CanvasItem):
|
|||||||
__gtype_name__ = 'SugarOptionMenu'
|
__gtype_name__ = 'SugarOptionMenu'
|
||||||
|
|
||||||
__gproperties__ = {
|
__gproperties__ = {
|
||||||
'value' : (int, None, None, 0, sys.maxint, 1, gobject.PARAM_READWRITE)
|
'value' : (object, None, None,
|
||||||
|
gobject.PARAM_READWRITE)
|
||||||
}
|
}
|
||||||
|
|
||||||
__gsignals__ = {
|
__gsignals__ = {
|
||||||
|
Loading…
Reference in New Issue
Block a user