Re: GtkCellRendererText - Please help



Am Sonntag, 8. Dezember 2002 23:24 schrieb Naveen Appaji:
GtkCellRendererText has the "edited" signal assocaited with it.


How do I associate the "activate" / "clicked"/ "toggled"signal to it???


In other words, if I click on a cell (or row),  I need a signal to be
emited and I should be able to associate a callback to it.


I know that there is a GtkCellRendererToggle type, but my entries in the
column are of text type and should be editable. So, I am not able to
associated both the "toggled" and "edited" signal to it.
textrenderer doesn't support the "toggled" signal. To get the information how 
to make an editable entry download the source tarball of gtk and look in 
demos/gtk-demo/tree_store.c
But beware: The treeview widget is a bad ass one. It has a great disadvantage: 
You can't put widgets into the cells. For each type of object you have to 
write your own renderer!! *ARRRGH*



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