[Vala] Bug in vala, dbus, or udisk?




-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all:

I'm trying to connect a callback to a signal from UDISK, through DBus.
The signal is JobChanged, defined here:

http://hal.freedesktop.org/docs/udisks/Device.html#Device::JobChanged

The problem is that in the documentation it's defined as

JobChanged ('b' job_in_progress,
            'b' job_is_cancellable,
            's' job_id,
            'u' job_initiated_by_uid,
            'd' job_percentage)


But if I define it with that parameter order:

public signal void JobChanged(bool job_in_progress, bool
job_is_cancellable, string job_id, uint job_initiated_by_uid, double
job_percentage);


I receive this error messages:

(cronopete3:13952): GLib-CRITICAL **: g_variant_get_boolean: assertion
`g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN)' failed

(cronopete3:13952): GLib-CRITICAL **: g_variant_get_string: assertion
`g_variant_is_of_type (value, G_VARIANT_TYPE_STRING) ||
g_variant_is_of_type (value, G_VARIANT_TYPE_OBJECT_PATH) ||
g_variant_is_of_type (value, G_VARIANT_TYPE_SIGNATURE)' failed

(cronopete3:13952): GLib-CRITICAL **: g_variant_get_uint32: assertion
`g_variant_is_of_type (value, G_VARIANT_TYPE_UINT32)' failed

** (cronopete3:13952): CRITICAL **: __lambda2_: assertion `jobid !=
NULL' failed


But if I reorder them this way (moving job_is_cancellable) all works fine:

public signal void JobChanged(bool job_in_progress,string job_id,uint
job_initiated_by_uid,bool job_is_cancellable,double job_percentage);


Is this a bug in Vala DBUS? In GDBUS? In UDisk? Or in UDisk's documentation?

Thanks.

- -- 
Nos leemos
                 RASTER    (Linux user #228804)
raster rastersoft com              http://www.rastersoft.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlA7kTEACgkQXEZvyfy1ha/A4wCgz4oUI7CItBg8ujKFqqJREFBQ
+OkAoN8kf9uLMdz2ywEqffCt8jlsNcY+
=2G5G
-----END PGP SIGNATURE-----




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]