Re: Insensitive items in GtkComboBox



On Thu, 2004-12-09 at 14:16 +0200, markku vire suomi24 fi wrote:
> Hi,
> 
> >>   gtk_combo_box_set_sensitive_column(GtkComboBox *box, gint column);
> >Are you sure you mean Column and not Row?
> 
> I meant that this column in the underlying GtkTreeModel would define if
> the row in the box would be sensitive (in the same way as column span currently
> works).

Ah, I see.  

If it worked like the "visible" property (not tried the "column-span-
column" property myself), e.g.:

        gtk_tree_view_insert_column_with_attributes (
        	view, -1, 
        	_("Status"),
        	renderer, 
        	"text", COL_TEXT,						  	"visible", COL_VISIBLE,
        	"sensitive, COL_SENSITIVE);

Then it would be good.  I can't see the need for an API though.  If you
had a function like gtk_combo_box_set_sensitive_column () you would
still need some way of setting it on a per item basis in the store.

-- 
Regards,
Martyn



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