[Gtk-sharp-list] ListStore/TreeStore.SetColumnTypes

Vladimir Vukicevic vladimir@pobox.com
Thu, 3 Oct 2002 12:52:31 -0700 (PDT)


This function has the following prototype in C:

void gtk_list_store_set_column_types
  (GtkListStore *list_store, gint n_columns, GType *types);

where types is supposed to be an n_columns-sized array of GType.
However, the generator is spitting out:

[DllImport("gtk-x11-2.0")]
static extern void gtk_tree_store_set_column_types(IntPtr raw, int n_columns, int types);

public void SetColumnTypes(int n_columns, int types) {
	gtk_tree_store_set_column_types(Handle, n_columns, types);
}

i.e., the types parameter is losing it's pointer/array-ness.  What's
the proper way to fix this?  I can hand-wrap these two functions if
necessary since I'm having hard time finding an example of something
similar elsewhere.

	- Vlad