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. 



_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to