xfdesktop trash troubles
Benedikt Meurer
benedikt.meurer at unix-ag.uni-siegen.de
Wed Aug 23 10:55:02 CEST 2006
Brian J. Tarricone wrote:
> Hey Benny (or anyone),
Hey Brian,
> /* this does not */
> ret = dbus_g_proxy_call(dbus_proxy, "DisplayTrash", &error,
> G_TYPE_STRING, &display_name,
> G_TYPE_INVALID, G_TYPE_INVALID);
You need to pass the address of the string here, not the address of the
pointer (unlike its done with message iterators in the core api).
Why not simply use dbus-bindings-tool (like thunar-tpa does) to generate
wrappers for the D-Bus methods so you are not concerned with such details?
HTH,
Benedikt
BTW: It'd be nice if xfdesktop would also use non-blocking calls,
because the trash calls do not return instantly usually plus stuff like
autoactivation, etc. dbus-bindings-tool also generates wrappers for
async calls (see thunar-tpa for example).
More information about the Xfce4-dev
mailing list