Re: more newbie questions....
Simon McVittie <simon.mcvittie-ZGY8ohtN/[email protected]>
| Newsgroups | gmane.comp.freedesktop.dbus |
|---|---|
| Organization | Collabora Ltd. |
| Message-ID | <[email protected]> |
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
_______________________________________________
dbus mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dbus