[Gtk-sharp-list] How the developments of gtksharp and gtk+ interact?
monoman at gmail.com
Wed Mar 21 08:58:34 EDT 2007
"The other way, C# to C, is not posible, thought."
Not quite right. GTK+ has some extension mechanisms: the problems are:
1) You need to code a C-wrapping library to conform to GTK+ APIs (the
reverse of what gapi does to generate GTK# from GTK+)
2) As keeping the managed bits out-of-process for the widgets seems a
bad solution (both in security/performance), probably you also need to
embed mono in the wrapping library.
Both things are better if implemented as a general infrastructure
rather than a duplicated block for each widget project.
IMO, I think this isn't the best path.
I think that new managed widgets, can be reused, using Stetic's
export/import mechanism, but that only works for managed programs,
what itself foments Mono/GTK# usage. As more languages are coming to
the pool of managed ones (including python/ruby) this is less of a
restriction on current devs, they just adjust a bit to conform to the
The biggest leap is presented to C gnome devs, that need to learn C#
or one of the other managed languages Mono supports, but that is
precisely why Mono was started to make Gnome/FOSS development
easier(see Miguel's myriad instances of such explanations, in
In the long run, probably we will have GTK+ superceded by some newer
technology (WPF-like? XUL-like? ???), that will either be fully
managed from start (what I hope), and/or more easily "extensible
by"/"integrated with" diverse languages/VMs.
On 3/21/07, David Anes <david.anes at gmail.com> wrote:
> Hi Dong.
> Gtk# is mostly automatically generated from GTK+, so new widgets developed
> in Gtk+ side will be available sometime after in Gtk#. The other way, C# to
> C, is not posible, thought.
> David Anes.
> 2007/3/19, Dong Tiger <idlecat511 at gmail.com>:
> > Hi all,
> > I am curious about this.
> > For example, if a new widget is added to GTK+, it won't be usable in
> GTKSharp automatically. Even worse, if I want to implement a widget in C#,
> it definitely can't be used by normal gtk+ program.
> > It's a burden that gtksharp developers have to take and it can be very
> bad. How do you guys think about it?
> > PS: I am not on the list so please CC. me if you write something.
> > _______________________________________________
> > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com
> Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com
Rafael "Monoman" Teixeira
"The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man." George Bernard Shaw
More information about the Gtk-sharp-list