RE: incompatible pointer type?



On Tue, 2002-03-12 at 14:37, Clancy, Shane W. wrote:
> 
> Benat,
> I made the change as you suggested, and 2 of the four warnings went away.  I
> am no longer seeing the "assignment makes integer from pointer without a
> cast" warning.  However, I am still getting the "incompatible pointer type"
> warnings and the same parse error.  

see below

> 
> Thank you for your assistance,
> Shane
> 
> -----Original Message-----
> From: Benat
> To: Clancy, Shane W.
> Sent: 3/12/02 9:14 AM
> Subject: Re: incompatible pointer type?
> 
> On Tue, 2002-03-12 at 14:50, Clancy, Shane W. wrote:
> > void
> > on_apply_button_clicked                (GtkButton       *button,
> >                                         gpointer         user_data)
> > {
> > 	gchar 	text[2];
> Should be:
> 	gchar  *text[2];
> 
> > 	gint	  i;
> > 	
> > 	text[0] = gtk_editable_get_chars (col1_combo, 1, -1);
> > 	text[1] = gtk_editable_get_chars (col2_combo, 1, -1);

col1_combo and col2_combo aren't gtk_editables they are probably some
subclass in which case they need casting 

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++){
> > 		gtk_clist_set_text ( list, row, col, text[i];

you forgot the closeing )
should be gtk_clist_set_text ( list, row, col, text[i]);

> > 		col++;
> > 		}
> > 	row++;
> > 
> > }
> > 
> > 
> > Any help would be appreciated, thanks.
> You're welcome
> 
> > Shane 
> 
> Beņat
> 
> 
> _______________________________________________
> gnome-devel-list mailing list
> gnome-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-devel-list
> 
-- 

rob




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