~gunnarhj/ubuntu/wily/ibus/pt_PT-compose

« back to all changes in this revision

Viewing changes to ibus/enginedesc.py

  • Committer: Package Import Robot
  • Author(s): Osamu Aoki
  • Date: 2012-02-12 14:08:49 UTC
  • mfrom: (1.2.15)
  • Revision ID: package-import@ubuntu.com-20120212140849-c2qz4herqz6cu8pk
Tags: 1.4.1-1
* Remove old patches included in the upstream.
* Revert pkglibexec patch by Kees Cook with old automake1.11-2
  workaround and use configure option --libexec.
* Add doc-base support and preinst for documentation location
  migration.
* Fix 'ibus-1.0' not found error using patch by Daiki Ueno.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
class EngineDesc(Serializable):
32
32
    __gtype_name__ = "PYIBusEngineDesc"
33
33
    __NAME__ = "IBusEngineDesc"
34
 
    def __init__(self, name="", longname="", description="", language="", license="", author="", icon="", layout="", hotkeys="", rank=0, symbol=""):
 
34
    def __init__(self, name="", longname="", description="", language="", license="", author="", icon="", layout="", hotkeys="", rank=0, symbol="", setup=""):
35
35
        super(EngineDesc, self).__init__()
36
36
        self.__name = name
37
37
        self.__longname = longname
44
44
        self.__rank = rank
45
45
        self.__hotkeys = hotkeys
46
46
        self.__symbol = symbol
 
47
        self.__setup = setup
47
48
 
48
49
    def get_name(self):
49
50
        return self.__name
78
79
    def get_symbol(self):
79
80
        return self.__symbol
80
81
 
 
82
    def get_setup(self):
 
83
        return self.__setup
 
84
 
81
85
    name        = property(get_name)
82
86
    longname    = property(get_longname)
83
87
    description = property(get_description)
89
93
    rank        = property(get_rank)
90
94
    hotkeys     = property(get_hotkeys)
91
95
    symbol      = property(get_symbol)
 
96
    setup       = property(get_setup)
92
97
 
93
98
    def serialize(self, struct):
94
99
        super(EngineDesc, self).serialize(struct)
103
108
        struct.append(dbus.UInt32(self.__rank))
104
109
        struct.append(dbus.String(self.__hotkeys))
105
110
        struct.append(dbus.String(self.__symbol))
 
111
        struct.append(dbus.String(self.__setup))
106
112
 
107
113
    def deserialize(self, struct):
108
114
        super(EngineDesc, self).deserialize(struct)
117
123
        self.__rank = struct.pop(0)
118
124
        self.__hotkeys = struct.pop(0)
119
125
        self.__symbol = struct.pop(0)
 
126
        self.__setup  = struct.pop(0)
120
127
 
121
128
def test():
122
 
    engine = EngineDesc("Hello", "", "", "", "", "", "", "", "", 0, "")
 
129
    engine = EngineDesc("Hello", "", "", "", "", "", "", "", "", 0, "", "")
123
130
    value = serialize_object(engine)
124
131
    engine = deserialize_object(value)
125
132