Re: Gio::DBus::Connection::emit_signal issue



Hi!

connection->emit_signal(OBJECT_PATH, INTERFACE_NAME, "Click");
This is the more "C" style way of connecting GObject signals...

If I replace the line with
g_dbus_connection_emit_signal(connection->gobj(), NULL, OBJECT_PATH,
INTERFACE_NAME, "Click", NULL, NULL);
Here your're using the "C" way of connecting GObject signals but doing it right (the right "C" way that is)

the C++ way of doing it is like so:
objectName.signal_clicked.connect( sigc::mem_fun( instanceToConnectTo, &InstanceClassName::functionName ) );

See http://developer.gnome.org/gtkmm-tutorial/3.0/chapter-custom-signals.html.en for a good explanation & example code.

Good luck! -Harry


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