[Vala] static const arrays
- From: Sam Liddicott <sam liddicott com>
- To: vala-list gnome org
- Subject: [Vala] static const arrays
- Date: Mon, 23 Jun 2008 16:50:41 +0100
Vala hates the array initialization in the second block.
How should such a thing be done; please?
(I have searched and read examples and tutorials)
protected struct window_widget_names {
int index;
char* name;
char* class;
}
protected window_widget_names widget_info[] = {
{0, "GtkWindow", "win"},
{1, "GtkVBox", "vbox1"},
{2, "GtkMenuBar", "menubar1"},
{3, "GtkMenuItem", "menuitem-1"},
{3, "GtkMenuItem", "menuitem_1"},
{0,NULL,NULL}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]