[Vala] DBUS : Must add the signal with dbus_g_proxy_add_signal()
- From: Frédéric Gaudy <fred_gaudy yahoo fr>
- To: vala-list gnome org
- Subject: [Vala] DBUS : Must add the signal with dbus_g_proxy_add_signal()
- Date: Fri, 15 May 2009 14:01:00 +0000 (GMT)
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]