From eafd338d093ef78752466a88c14a87e4c9e864b4 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 25 May 2007 11:34:54 +0100 Subject: [PATCH] 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__')) --- services/presence/buddy.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/services/presence/buddy.py b/services/presence/buddy.py index da70e742..b411270a 100644 --- a/services/presence/buddy.py +++ b/services/presence/buddy.py @@ -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