In Gtk+, g_object_set(obj, prop, value) can be used to set arbitrary properties of an object, meaning that you can do things like replace gtk_show_window with g_object_set(window, "visible", TRUE).
Is there any (accessible) binding to this facility in Gtk#? If not, is there any way to do this in C# on any generic C# object (which would be more generally useful). I would like this functionality because I am working on a Gtk binding to Mercury, which I would like to have working with both Gtk# and Gtk+, and it would simplify the work if I can specify things once as calling object_set in Mercury, rather than once in C# and once in C. Also, is it possible to pass data to a Gtk# handler and have it passed back to your callback via. the EventArgs parameter (as you can do with the data parameter in Gtk+)? This would be necessary for storing the Mercury procedure to call from the C# callback I register. Any suggestions would be appreciated. Jon _______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
