[Gtk-sharp-list] Gtk.Clipboard and wrapping

Vladimir Vukicevic vladimir@pobox.com
Fri, 25 Oct 2002 16:49:39 -0700 (PDT)

A number of the automatically generated functions in Gtk.Clipboard
aren't quite correct, in particular SetWithData/SetWithObject.
SetWithData in particular requires a gpointer user_data in order to be
useful.  My plan for these was to create a Hashtable mapping between
an integer counter and a System.Object that was passed in; the integer
would then go to the gtk layer, and there would be two wrapper delegates
for the Get/Clear Funcs that would do the conversion/clearing --
similar to how GLib.Objects are handled currently.

However, where would be the right place to put this code?  Doing it in
a .custom would work, for the parts that need to be in Gtk.Clipboard
-- but i'm also going to have to write some GtkSharp.*.cs wrappers.  I
guess the Makefiles just do --recurse *.cs, so I can just put some .cs
files in gtk-sharp/gtk ?

      - Vlad