Re: [Java-gnome-developer] show a ColorButton into a collumn of a TreeView
Brought to you by:
afcowie
From: lameire a. <ale...@ho...> - 2012-02-06 18:11:44
|
thanks for your help but the use of DataColumnPixbuff make another problem The ListStore::setValue with the usage of DataColumnPixbuff need the usage of a Pixbuff but to optain it, I must draw it with caro. Cara Context class don't provide any constructor using a Pixbuff to draw into it, In this case i don't know witch classes use and no example describe it? How to solve it, Must I use another classes of Caro ? Thanks for you future respons. Alexis Lameire Le lundi 06 février 2012 à 18:19 +0200, cyber python a écrit : > You can use DataColumnPixbuf, and a CellRendererPixbuf to display an > image (you can create one with ImageIO) filled with the desired color. > To store a reference to the color object you can use > DataColumnReference<Color>. Just remember that the model of the > treeview is meant to be used only for presentation purposes and not to > store your application's model. |