Fix python binding.
This commit is contained in:
		@ -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)
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user