On Mon, Dec 29, 2014 at 3:07 PM, ivano borsato <iacopodeeno...@gmail.com> wrote:
> hi all, i've a problem to create mine *Gvc.MixerControl* class, i'll try > to implement this into my extension in javascript; here is the code i use: > http://pastebin.com/6Ea5hgZz > when i create the object that remains in the _connecting_ state; what is > the correct procedure to create it? thx, 8y3 > > Hi The problem in that code is that you're never going back to the main event loop, so you're never processing the connected notification from the PulseAudio worker thread. The correct way to obtain a Gvc.MixerControl is to construct it, connect to the notify::state signal (which will fire whenever the state property change), and inside the signal handler checking the state, performing any other initialization once the state switches to the connected. You cannot use a loop because a loop is a blocking control flow structure. Hope this helps Giovanni
_______________________________________________ gnome-shell-list mailing list gnome-shell-list@gnome.org https://mail.gnome.org/mailman/listinfo/gnome-shell-list