Re: [gtk-list] gtk_clist_find_row_from_data (?) help



The text array is declared with only 2 entries. This will be the problem
assuming this is the actual code and not a typo in the post.


Paul Cardwell wrote:
 
> .
> char *text[2];    <======= This should be text[3]
> 
> text[0]="daffy";   /* Ok I should malloc these ;) */
> text[1]="duck";
> text[2]="rules";
> 
> row = gtk_clist_find_row_from_data(GTK_CLIST(mylist), (gpointer) text);
> 
> This is assuming the data is already in the columned list.



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