[Vala] Re : DBUS : Must add the signal with dbus_g_proxy_add_signal()



In the client source generation, the first connect signal fonction is :

_dynamic_conversion_completed1_connect (self->priv->server, "conversion_completed", (GCallback) _cameleon_client_on_conversion_completed_dynamic_conversion_completed0_, self);

then the dbus signal wrapper function is
void _dynamic_conversion_completed1_connect (gpointer obj, const char * signal_name, GCallback handler, gpointer data) {
    dbus_g_object_register_marshaller (g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, G_TYPE_INVALID);
    dbus_g_proxy_add_signal (obj, "ConversionCompleted", G_TYPE_INVALID);
    dbus_g_proxy_connect_signal (obj, signal_name, handler, data, NULL);
}

Fist used is conversion_completed, then ConversionCompleted.

Is it normal?


De : Levi Bard <taktaktaktaktaktaktaktaktaktak gmail com>
À : Frédéric Gaudy <fred_gaudy yahoo fr>
Cc : vala-list gnome org
Envoyé le : Lundi, 18 Mai 2009, 19h47mn 54s
Objet : Re: [Vala] DBUS : Must add the signal with dbus_g_proxy_add_signal()

> WARNING **: Must add the signal
> 'net-sf-Cameleon-Service-conversion_completed' with
> dbus_g_proxy_add_signal() prior to connecting to it
>
...
>     dbus_g_proxy_add_signal (obj, "ConversionCompleted", G_TYPE_INT,

It looks like the signal "ConversionCompleted" is being added, but
it's trying to connect to "conversion_completed"...
Try passing --disable-dbus-transformation to valac?

--
http://homes.eff.org/~barlow/EconomyOfIdeas.html
http://www.dreamsongs.com/MobSoftware.html
http://www.gnu.org/philosophy/shouldbefree.html



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