get invisible data from GtkCList



Hi all,

I have created GtkCList and some its columns are invisible ( I call gtk_clist_set_column_visibility (GTK_CLIST(clist), i, FALSE); ). I need all data from selected row. Data from visible columns are ok, but for invisible culomns I get only "".

if ( clist &&  clist->selection )
{
 for (i = 0; i < clist->columns; i++)
{ gtk_clist_get_text ( GTK_CLIST(clist), GPOINTER_TO_INT(clist->selection->data) , i, &text );
  g_print ("data : '%s'", text );
 }
}

output :
col1 : 'aaa'
col2 : ''                <- invisible column
col3 : 'ccc'

if column 2 is visible I get :
col1 : 'aaa'
col2 : 'bbb'
col3 : 'ccc'


What I am doing wrong ?

Thank you for all your answers.

Michal.





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