[Y-devel] Quick project roll-call
Michael Farnsworth mike at xsdev.net
Fri May 14 00:47:22 BST 2004
On Thu, 2004-05-13 at 17:17, Brandon Black wrote:
> Michael Farnsworth wrote:
>
> > On Thu, 2004-05-13 at 12:24, Mattia Belletti wrote:
> >
[snip]
>
> I was thinking through gtk compatibility issues at one point as well
> (although regrettably I didn't get to the point of writing any code),
> and I was thinking along very different lines. If you look at the Y
> widgets and the GTK API, there's large similarities in interface
> design. Rather than port gtk and/or gdk onto a new Y backend, it might
> well be easier to write a gdk/gtk api wrapper around the Y client API,
> which presents a gtk-compatible API without actually involving any code
> from the gtk project itself. It would make some of the issues you
> raise above moot. If you did it carefully enough, you could even make
> the API compatible at run-time rather than just at compile-time, which
> would be interesting for binary distributions like redhat where it's not
> fun for the end-user to recompile everything to try out a new windowing
> system. I don't really advocate supporting GTK/GDK in the long-term
> sense, this is just something so that apps can run in Y unmodified until
> people port them or write new replacements.
>
> Brandon
>
>
>
I suspect that might be an even more messy and huge amount of work, so
I'm a little afraid to attempt to tackle something like that. The
GTK/GDK interfaces are large, complex, and there are so many details
that would have to be tracked if we were to essentially duplicate the
interface. That is a very intriguing thought, though, and something to
keep in mind for sure.
At very minimum I think that we should provide compatibility with
GTK/GDK enough to attract developers and gain applications. Then, down
the road if desired, we can try to convince some of them to write pure Y
applications, but I suspect that something that radical wouldn't happen
anytime soon, and it would require an awful lot of momentum. When that
point gets closer, it might be more likely that the GTK team itself
would actually build more close-knit compatibility with Y so that we
don't have to. =)
I think I'm going to try the simplest and fastest approach first, and
try to do a proof-of-concept port using Y canvas widgets, and a layer in
GDK that uses Y calls to get them rendered, etc. I think that will
provide a good test-bed to then begin experimenting with other
approaches, like the one you suggested, so that we can fall back on the
default behavior of the toolkit for something haven't tried yet.
Regards,
Mike Farnsworth
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved