Re: Cell Renderer Combo in a Treeview



Hello,

Le 13/09/2007, dhk <dhkuhl optonline net> a Ãcrit :
The attached and inline program below illustrates the problem I'm
having with rendering a combo box in a treeview.
Ok, two things :
When your callback is triggered, it must change the TreeStore (which is
rendered in the treeview), not ls_combo which is displayed in the
combo. So, your call must attach
gtk_tree_view_get_model(GTK_TREE_VIEW(tv)) and not ls_combo (change
the header of the call back). Then in the callback, use
gtk_tree_store_set with the right column id (namely COL_TYPE here)
instead of 0.

Should work like that.

Damien.



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