Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm using the GIO high level DBus API - DBusProxy object. I'd like to emit a signal on this object (faking a signal coming from a remote interface).

I do something like this:

proxy.emit('g-signal', sender_name, signal, params)

The signal is emitted and then caught - the sender name and signal parameters are OK, however params is always None in the signal handler, no matter what I put there (I tried GLib.Variant types and also Python types). The signals received normally do have the params value defined.

What is the issue? How do I set params in the emit functions?

share|improve this question

closed as off-topic by muru, Charles Green, Jan, Eric Carvalho, KasiyA Nov 6 at 11:17

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – muru, Charles Green, Jan, Eric Carvalho, KasiyA
If this question can be reworded to fit the rules in the help center, please edit the question.

5  
This is a programming question. You'll probably get better answers from a programmer community in Stack Overflow. –  Flimm Jan 4 '13 at 14:15

Browse other questions tagged or ask your own question.