[LAD] LV2 GUI - GTK widget signal disconnect

From: Aurélien Leblond <blablack@email-addr-hidden>
Date: Sat Jan 18 2014 - 19:15:54 EET

Hello,

I have a strange issue in my plugins GUI beatslash-lv2
(https://github.com/blablack/beatslash-lv2) or deteriorate-lv2
(https://github.com/blablack/deteriorate-lv2).

The GUI widgets to control the plugins gets disconnected when used for a while.
I can reproduce the issue in Ingen almost everytime, although I never
know exact when the GUI will disconnect and Ingen doesn't output any
error.

What happens is that once the widgets disconnect, if I try to change
the values via the GUI (turn the dial, change the value of a combo
box, etc) the changes are not transferred to the LV2 DSP.

The way I connect the GUI values to the LV2 values is as follows:
 m_comboWaveForm->signal_changed().connect(compose(bind<0>
(mem_fun(*this, &Vco2GUI::write_control), p_waveForm),
mem_fun(*m_comboWaveForm, &ComboBoxText::get_active_row_number)));

where m_comboWaveForm is of type Gtk::ComboBoxText*

Even if I close the GUI and reopen it, the signals won't reconnect.

I'm not sure where the issues is (GTK, LVTK.....or my code!).

Is there a better way to connect signals in such design?

Thanks in advance for the help.

Aurélien
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Sat Jan 18 20:15:02 2014

This archive was generated by hypermail 2.1.8 : Sat Jan 18 2014 - 20:15:03 EET