Re: [Vala] No signals in GDBus



The function Bus.get_proxy_sync(BusType.SESSION, "org.example.Demo",
"/org/example/Demo") should return a DBusProxy. Unfortunately in vala it
cannot be connected as usual (as I would expect in the example):

  demonotify.g_properties_changed.connect( () =>
{ print("properties_changed reached client 2");});
  demonotify.g_signal.connect( () => { print("g_signal reached client
2");}); 
Do you have a working example?
Regards
Jörn


On 18 September 2010 04:05, JM <interflug1 gmx net> wrote:
Please give me a hint what I'm doing wrong here. I'm using vala-0.9.8
release.

I know that normally, DBusProxy has only 2 signals (really, sort of
meta-signals): "g-signal" and "g-properties-changed"
(http://library.gnome.org/devel/gio/unstable/GDBusProxy.html#GDBusProxy.signals)

I'm not familiar with the [DBus (name = "org.example.Demo")] syntax,
though I get what it is trying to do.  If you instead just used a base
DBusProxy, connected to the two above signals, and checked which
signal/property the emissions were actually for before doing anything,
I believe it will work (does for me).

-mt





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