GLib bingings: howto catch proxy destruction / prevent DBUS_G_PROXY_DESTROYED assert

g4-lisz at tonarchiv.ch g4-lisz at tonarchiv.ch
Sun Jan 25 16:01:12 PST 2009


Colin Walters wrote:
> On Sun, Jan 25, 2009 at 8:07 AM,  <g4-lisz at tonarchiv.ch> wrote:
>
>   
>> Is there a way to get a signal / catch an exception / register a
>> callback function or similar when the proxy has been destroyed?
>>     
>
> A DBusGProxy created with new_for_name_owner will emit a "destroy"
> signal, which in general one must catch and handle.
>   
Thanks for the answer. I'm new to GLib. Could you please explain me more 
in detail how to catch such a signal? Is it a signal on the D-Bus or 
some signal from the API? Sorry i'm really totally newbie to this stuff.
Regards
T


More information about the dbus mailing list