[Vala] Re : 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] Re : DBUS : Must add the signal with dbus_g_proxy_add_signal()
- Date: Mon, 18 May 2009 17:24:32 +0000 (GMT)
Hi,
Does DBus signals works ob vala 0.6.1?
De : Frédéric Gaudy <fred_gaudy yahoo fr>
À : vala-list gnome org
Envoyé le : Vendredi, 15 Mai 2009, 16h01mn 00s
Objet : [Vala] DBUS : Must add the signal with dbus_g_proxy_add_signal()
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]