Re: incompatible pointer type?
- From: Jens Askengren <jensus linux nu>
- To: "Clancy, Shane W." <SCLANCY northropgrumman com>
- Cc: gnome-devel-list gnome org
- Subject: Re: incompatible pointer type?
- Date: 12 Mar 2002 15:30:03 +0100
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]