Re: How to set only ONE Column editable (GTK2)



Andreas Scherf <scherfa web de> writes:
> I have another problem,
> i have 2 columns :
> Number Name
> Now i want that the user could edit the name but not want that he could
> change the number. I have solved this by dont let the changes come
> trough :
>  column = g_object_get_data (G_OBJECT (cell), "column");
> 
>   if  ((gint) column==NUMBER_COLUMN) {
> return;
> }
> But thats a bad result, could i set the column number 0 to not_EDITABLE
> ?
> 

You can use a different cell renderer for each column, right.

Havoc



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