Treeview and on_cell_toggled()
- From: lmarcilly aressi fr
- To: gtkmm-list gnome org
- Subject: Treeview and on_cell_toggled()
- Date: Mon, 8 Aug 2005 13:52:41 +0000
Hi all,
Here is an example of my treeview :
Group1
|-----------Elt1
|-----------Elt2
Group2
|------Group2_1
|----------Elt1
|----------Elt2
|-------Elt1
I have a second column which contain a boolean (false by default). For example, when user select Group1 (so that boolean change to true), i want that boolean value change also for Elt1 and Elt2. I think that i have to use CellRendererToggle and to connect it with signal but i can't made it work!! It won't compile, i try a lot of test but without success..
Could you help me? I have seen http://www.gtkmm.org/gtkmm2/docs/tutorial/html/apb.html and http://www.gtkmm.org/gtkmm2/docs/tutorial/html/ch08s02.html#id2519595 and particularly :
Gtk::CellRendererToggle* pRenderer = Gtk::manage( new Gtk::CellRendererToggle() );
pRenderer->signal_toggled().connect(
SigC::bind( SigC::slot(*this, &Example_TreeView_TreeStore::on_cell_toggled), m_columns.dave)
);
Does anybody has an example which works perfectly?
Thanks in advance.
lm.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]