Closed GoogleCodeExporter closed 9 years ago
Your remote dbus object must support Introspectable interface, otherwise signal
won't
work correctly.
Original comment by james...@gmail.com
on 8 Aug 2009 at 2:23
Well, i think it does. See the attached dbus-monitor log, captured while
connecting
the widget to the bus.
Original comment by pro...@gmail.com
on 8 Aug 2009 at 1:19
Attachments:
Then, which signal did you try to connect?
Original comment by james...@gmail.com
on 8 Aug 2009 at 1:30
message. There's a signal message and a method message which leads to type
mismatch,
i think.
Original comment by pro...@gmail.com
on 8 Aug 2009 at 1:32
You can uncomment line 38 of ggadget/dbus/dbus_proxy.cc to get more verbose log
message.
Original comment by james...@gmail.com
on 8 Aug 2009 at 1:33
That's the problem. they shouldn't use the same name, otherwise there is no way
to
distinguish which you want when accessing the name from JavaScript.
Original comment by james...@gmail.com
on 8 Aug 2009 at 1:59
You're right. With this architecture you use (prototype determination by dynamic
getter) it's not possible. Maybe you could implement a method to return a
signal slot
for cases like this. It's not that unlikely that there's a signal and a method
with
the same name, i think.
Original comment by pro...@gmail.com
on 8 Aug 2009 at 2:02
You can try to modify ScriptableDBusObject::DynamicGetter() to try signal before
method. Then you can access the signal. You may still call the method with
$callMethod method.
If it works for you, I can modify the trunk code as it.
Original comment by james...@gmail.com
on 8 Aug 2009 at 2:20
I did so before. Yes it works.
Original comment by pro...@gmail.com
on 8 Aug 2009 at 2:27
Ok, I'll modify trunk.
Original comment by james...@gmail.com
on 8 Aug 2009 at 2:29
Ok. Thank you.
Original comment by pro...@gmail.com
on 8 Aug 2009 at 3:08
Original comment by james...@gmail.com
on 10 Aug 2009 at 9:53
Original issue reported on code.google.com by
pro...@gmail.com
on 7 Aug 2009 at 7:45