[Mono-list] GTK# Patch for TreeStore, ListStore, and TextIter

Mike Kestner mkestner@speakeasy.net
20 Nov 2002 23:58:00 -0600


[Note: please followup to gtk-sharp-list only. Let's keep Gtk#
discussion there, please.]

On Wed, 2002-11-20 at 21:12, Daniel Morgan wrote:

> This is what I am trying to create with the Gtk.Metadata for
> ListStore.SetColumnTypes:
> 
> 		[DllImport ("libgtk-win32-2.0-0.dll")]
> 		static extern void gtk_list_store_set_column_types (IntPtr raw,
> 						int n_columns, int[] types);
> 
> 		public void SetColumnTypes(int[] types) {
> 			gtk_list_store_set_column_types (Handle, n_columns, types);
> 		}

Okay, so I think we can easily get to:

SetColumnTypes(int n_columns, int[] types) 

in generated code.  The elimination of the n_columns param is going to
need a nasty generator hack that is probably better done with a
customization since it's just a couple methods.

> Mike Kestner said he would test this for me, all I had to do was supply a
> patch for him.

I actually hacked up some rules last night after we talked, but it looks
like some hand edits were committed to the gtk-api.xml file that I am
going to have to fix first or there will be regressions in the clipboard
wrapper.

-- 
Mike Kestner <mkestner@speakeasy.net>