Re: -----Why this error info turn up?



Since gtk_button_new and gtk_label_new return pointers to widgets, it
would probably have worked better had you defined your button and label
widgets arrays as:

GtkWidget *button[12];
GtkWidget *label[12];

Bob Caryl

On Mon, 2005-01-17 at 07:31, Bob Zhao wrote:
Thanks indeed,
the method works

I feel that is very strange.
I already define label as

Widget label[12];

at the beginning of the file.

Bob Zhao,

Inguva Rajasekhar ??:

1053 gtk_container_add (GTK_CONTAINER (button
[index]), label [index]);


Typecast label[index] as widget type. i.e,
gtk_container_add(GTK_CONTAINER(button[index]), 
GTK_WIDGET(label[index]));

I guess that should remove the warning.

Regards,
Raj




_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




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