A signal for a ComboBoxText



Hello everybody,

I wrote a Gtk::ComboBoxText (that preferably should remain inside a
class method scope) that should drive something each time when an
active element changes. I was trying this doing,

Gtk::ComboBoxText m_comboboxtext;

m_comboboxtext.signal_changed().connect(sigc::bind<Glib::ustring>(sigc::mem_fun(some_object,
&some_class::method1),
            m_comboboxtext.get_active_text()));

But Gtk::ComboBoxText::get_active_text() doesn't throw the current
active element...

What should I change ?

Glus.


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