Re: -----Why this error info turn up?
- From: Bob Zhao <szbzhao tom com>
- To: "Brian J. Tarricone" <bjt23 cornell edu>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: -----Why this error info turn up?
- Date: Tue, 18 Jan 2005 09:25:39 +0800
I am 100% sorry for my carelessness, what I have done is:
GtkWidget *button [12];
GtkWidget *label [12];
Brian J. Tarricone ??:
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.
except that they're not Widgets; they're GtkWidgets. you also really
want to be using an array of pointers, thus:
GtkWidget *label[12];
then you can do, for example:
label[3] = gtk_label_new("foobar");
and you won't need the explicit GTK_WIDGET() cast when passing to
functions expecting a GtkWidget.
-brian
_______________________________________________
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]