Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Side by Side Diff: ibus/bus.py

Issue 1784007: Merge xkb related changes. (Closed) Base URL: ssh://git@chromiumos-git/ibus.git
Patch Set: Revert the default values of some configs. Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # vim:set et sts=4 sw=4: 1 # vim:set et sts=4 sw=4:
2 # 2 #
3 # ibus - The Input Bus 3 # ibus - The Input Bus
4 # 4 #
5 # Copyright (c) 2007-2010 Peng Huang <shawn.p.huang@gmail.com> 5 # Copyright (c) 2007-2010 Peng Huang <shawn.p.huang@gmail.com>
6 # Copyright (c) 2007-2010 Red Hat, Inc. 6 # Copyright (c) 2007-2010 Red Hat, Inc.
7 # 7 #
8 # This library is free software; you can redistribute it and/or 8 # This library is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU Lesser General Public 9 # modify it under the terms of the GNU Lesser General Public
10 # License as published by the Free Software Foundation; either 10 # License as published by the Free Software Foundation; either
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 def ping(self, data): 145 def ping(self, data):
146 flag = isinstance(data, serializable.Serializable) 146 flag = isinstance(data, serializable.Serializable)
147 if flag: 147 if flag:
148 data = serializable.serialize_object(data) 148 data = serializable.serialize_object(data)
149 data = self.__ibus.Ping(data, dbus_interface="org.freedesktop.IBus") 149 data = self.__ibus.Ping(data, dbus_interface="org.freedesktop.IBus")
150 if flag: 150 if flag:
151 data = serializable.deserialize_object(data) 151 data = serializable.deserialize_object(data)
152 return data 152 return data
153 153
154 def get_use_sys_layout(self):
155 return self.__ibus.GetUseSysLayout();
156
154 def introspect_ibus(self): 157 def introspect_ibus(self):
155 return self.__ibus.Introspect() 158 return self.__ibus.Introspect()
156 159
157 def introspect_dbus(self): 160 def introspect_dbus(self):
158 return self.__dbus.Introspect() 161 return self.__dbus.Introspect()
159 162
160 def get_config(self): 163 def get_config(self):
161 try: 164 try:
162 return self.__config 165 return self.__config
163 except: 166 except:
(...skipping 18 matching lines...) Expand all
182 185
183 for i in b.list_factories(): 186 for i in b.list_factories():
184 print i.name 187 print i.name
185 188
186 mainloop.run() 189 mainloop.run()
187 print "Exit" 190 print "Exit"
188 191
189 192
190 if __name__ == "__main__": 193 if __name__ == "__main__":
191 test() 194 test()
OLDNEW
« bus/ibusimpl.c ('K') | « bus/inputcontext.c ('k') | ibus/interface/iibus.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698