RE: incompatible pointer type?



Jens,
Thank you.  The code now compiles.  It doesn't work, but it compiles. 

A few additional questions if you don't mind.  Where would I look for more
information on macros (what they do, what macros are offered for gtk/gnome,
etc)?  When i click on the apply button, the following shows up on the
terminal window i kicked the app off from:

Gtk-CRITICAL **: file gtkclist.c: line 2229 (gtk_clist_set_text): assertion
`GTK_IS_CLIST (clist)' failed.

Any thoughts?

Thank you again.

Shane

-----Original Message-----
From: Jens Askengren
To: Clancy, Shane W.
Cc: gnome-devel-list gnome org
Sent: 3/12/02 9:30 AM
Subject: 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]