~ubuntu-branches/ubuntu/karmic/ibus/karmic-updates

« back to all changes in this revision

Viewing changes to ibus/property.py

  • Committer: Bazaar Package Importer
  • Author(s): LI Daobing
  • Date: 2009-07-23 20:22:09 UTC
  • mfrom: (1.1.4 upstream) (6.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20090723202209-bmgqa80g1umg8l2p
Tags: 1.2.0.20090723-1
new upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
    return Text(text)
60
60
 
61
61
class Property(Serializable):
 
62
    __gtype_name__ = "PYIBusProperty"
62
63
    __NAME__ = "IBusProperty"
63
64
    def __init__(self, key="", type=PROP_TYPE_NORMAL, label=u"", icon=u"", tooltip=u"",
64
65
                 sensitive=True, visible=True, state=PROP_STATE_UNCHECKED):
173
174
 
174
175
        self.__sub_props = deserialize_object(props)
175
176
 
176
 
serializable_register(Property)
177
 
 
178
177
class PropList(Serializable):
 
178
    __gtype_name__ = "PYIBusPropList"
179
179
    __NAME__ = "IBusPropList"
180
180
    def __init__(self):
181
181
        super(PropList, self).__init__()
218
218
    def __getitem__(self, i):
219
219
        return self.__props.__getitem__(i)
220
220
 
221
 
serializable_register(PropList)
222
 
 
223
221
def test():
224
222
    props = PropList()
225
223
    props.append(Property(u"a"))