Re: incompatible pointer type?



tis 2002-03-12 klockan 14.50 skrev Clancy, Shane W.:

> here is the offending function:
> 
> void
> on_apply_button_clicked                (GtkButton       *button,
>                                         gpointer         user_data)
> {
> 	gchar 	text[2];
> 	gint	  i;
> 		
	/* Use the GTK_EDITABLE-macro here:
> 	 text[0] = gtk_editable_get_chars (col1_combo, 1, -1);
> 	 text[1] = gtk_editable_get_chars (col2_combo, 1, -1);
	*/
 	 text[0] = gtk_editable_get_chars (GTK_EDITABLE(col1_combo), 1, -1);
 	 text[1] = gtk_editable_get_chars (GTK_EDITABLE(col2_combo), 1, -1);
> 	
> 	for (i = 0; i < 2; i++){
		/* the code lacks a closing ) */
> 		gtk_clist_set_text ( list, row, col, text[i];
		*/
		gtk_clist_set_text ( list, row, col, text[i]);
> 		col++;
> 		}
> 	row++;
> 
> }
> 






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