Commit 06e7e2af authored by Daiki Ueno's avatar Daiki Ueno

Fix python binding.

parent ce2c4ed0
......@@ -99,7 +99,7 @@ class Context(gobject.GObject):
self.__properties[pspec.name] = value
def do_get_property(self, pspec):
return self.__properties[pspec.name]
return self.__properties.get(pspec.name, pspec.default_value)
def add_keyboard(self, keyboard_type):
return self.__context.AddKeyboard(keyboard_type)
......
......@@ -24,7 +24,7 @@ class Keysym(symbol.Symbol):
def __init__(self):
super(Keysym, self).__init__()
xkeysym = property(lambda self: self.xkeysym)
xkeysym = property(lambda self: self.__xkeysym)
def serialize(self, struct):
super(Keysym, self).serialize(struct)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment