Hi,
I try to connect a call back to DBus.Object signal I've got this warning :
WARNING **: Must add the signal 'net-sf-Cameleon-Service-conversion_completed'
with dbus_g_proxy_add_signal() prior to connecting to it
Vala code :
public void run() {
this.conn = DBus.Bus.get (DBus.BusType.SESSION);
this.server = conn.get_object ("net.sf.Cameleon",
"/net/sf/cameleon",
"net.sf.Cameleon.Service");
this.server.conversion_completed += this.on_conversion_completed;
}
C Code :
void _dynamic_conversion_completed1_connect (gpointer obj, const char *
signal_name, GCallback handler, gpointer data) {
dbus_g_object_register_marshaller (g_cclosure_marshal_VOID__INT,
G_TYPE_NONE, G_TYPE_INT, G_TYPE_INVALID);
dbus_g_proxy_add_signal (obj, "ConversionCompleted", G_TYPE_INT,
G_TYPE_INVALID);
dbus_g_proxy_connect_signal (obj, signal_name, handler, data, NULL);
}
The signal ConversionCompleted is visible on D-Feet.
Do u have some advices? thanks.
_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list