more newbie questions....
Simon McVittie
simon.mcvittie at collabora.co.uk
Fri Dec 5 03:53:13 PST 2014
On 05/12/14 02:18, Thomas Green wrote:
> Then I try to attach to the ServicesChanged signal using a gcclosure
> that was generated by glib-genmarshal...
>
> Closure = g_cclosure_new(G_CALLBACK(ServicesChangedCallback), this, NULL);
> g_closure_set_marshal(Closure, marshal_VOID__BOXED_BOXED);
> g_signal_connect_closure(ManagerProxy, "ServicesChanged", Closure, true);
That's not how GDBus works. GDBus is not dbus-glib (and dbus-glib
doesn't actually work like that either).
Connect to the documented "g-signal" signal, or generate a GDBusProxy
subclass with gdbus-codegen.
S
More information about the dbus
mailing list