[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Cell Renderer Combo in a Treeview
- From: Damien Caliste <damien caliste cea fr>
- To: gtk-app-devel-list gnome org
- Subject: Re: Cell Renderer Combo in a Treeview
- Date: Thu, 13 Sep 2007 16:54:05 +0200
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]