services/presence/buddy: Stop treating server, key_hash, registered as GObject properties.
They're not handled in the inherited do_set_property()/do_get_property(), so won't work as properties, and there seems to be no need for them to be properties at all. This fixes the following assertion when importing buddy: Warning: g_object_class_install_property: assertion `pspec->flags & G_PARAM_WRITABLE' failed type_register(cls, namespace.get('__gtype_name__'))
This commit is contained in:
parent
a868f6eb9c
commit
eafd338d09
@ -499,15 +499,6 @@ class GenericOwner(Buddy):
|
||||
"""
|
||||
__gtype_name__ = "GenericOwner"
|
||||
|
||||
__gproperties__ = {
|
||||
'registered' : (bool, None, None, False,
|
||||
gobject.PARAM_READWRITE | gobject.PARAM_CONSTRUCT),
|
||||
'server' : (str, None, None, None,
|
||||
gobject.PARAM_READABLE | gobject.PARAM_CONSTRUCT),
|
||||
'key-hash' : (str, None, None, None,
|
||||
gobject.PARAM_READABLE | gobject.PARAM_CONSTRUCT)
|
||||
}
|
||||
|
||||
def __init__(self, ps, bus_name, object_id, **kwargs):
|
||||
"""Initialize the GenericOwner instance
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user