DBus GObject & g_object_unref
Marc-André Lureau
marcandre.lureau at gmail.com
Mon Jul 31 12:07:51 PDT 2006
My issue is not solved, unfortunately.
I don't know how to do, it's been a while I am trying to do that:
http://pastebin.ca/108858
Basically, I have a proxy_for_name_owner, and I would like to
be notified when the service-object is unref or when the service
is released.
If it's not possible, I will add a "disconnect" signal to my
service... but I guess it's bad,... and unnecessary.
My understanding is that the ":1.xx" is still there after the unref,
and that's why the proxy is not notified.
Should I listen to NameOwnerChange instead ?
Regards,
On 7/31/06, Havoc Pennington <hp at redhat.com> wrote:
>
> Not sure I understand what you expect vs. what you are seeing, but
> unref'ing an proxy will not make the remote application exit... if you
> just want to be notified when the proxy is finalized, then use the
> normal gobject features (g_object_set_data, g_object_weak_notify(?))
>
> If you want the remote app to exit, you have to do that in some custom
> way, e.g. by having it include an Exit method. Or for example if you
> want a "single instance" app, you can have each instance exit if it
> loses ownership of a bus name, and allow one instance to take over the
> bus name from an existing instance.
>
> Havoc
>
>
--
Marc-André Lureau, GSmartMix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/dbus/attachments/20060731/7395649b/attachment.html
More information about the dbus
mailing list