[Gtk-sharp-list] LibGlade
Miguel de Icaza
miguel@ximian.com
17 Aug 2002 16:34:30 -0400
Hello,
> >From a purely hypothetical point of view: I'm porting jpython to run on
> the mono CLR and I want to be able to run existing python gtk programs.
> Of course it would be very silly to write a new binding to libgtk that
> follows the (established) python way of doing the binding (usually a
> thin wrapper on the C API).
> With the current gtk# binding, the call chain for the python code:
>
> win.show_all ()
>
> will look like:
>
> win.show_all ()
> -> win.ShowAll ();
> -> gtk_widget_show_all (IntPtr raw);
I do not think that fully portable Gtk bindings are the intention here.
For instance, even Python requires glue code, and we would have to match
all the glue code in every binding to be compatible.
We are so many months away from having Perl or Python work on top of
Mono, that I do not believe that this is an issue at all. The Gtk# is a
set of bindings that are useful to develop Gtk applications.
If someone wants to have the raw version of Gtk, it is always possible
to get that, by using P/Invoke manually, but Gtk# provides a number of
utility functions and wrappers that make it well suited for .NET
development (like mapping Gtk properties to .NET properties).
miguel