Fix python binding.

This commit is contained in:
Daiki Ueno
2011-08-26 13:04:35 +09:00
parent ce2c4ed0f4
commit 06e7e2afac
2 changed files with 2 additions and 2 deletions

View File

@ -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)