[Y-devel] Quick project roll-call
Brandon Black brandon at tryplec.com
Fri May 14 00:17:54 BST 2004
Michael Farnsworth wrote:
> On Thu, 2004-05-13 at 12:24, Mattia Belletti wrote:
>
>>/Michael Farnsworth wrote:
>>> - I'm participating in a GDK/GTK port to Y, with Michael Latiolais at
>>> the head. This item is stalled, at the moment.
>>
>>Really little 2c: I think this point is _really_ important. If such a
>>thing is accomplished, it would allow a mass application move on Y. What
>>I want to ask is: apart from the missing widgets on Y (!! :P), once the
>>whole buffer thing is ported on the main branch, is everthing in the
>>right place to allow this port?
>>/
>>
> I'm not sure if this got posted to the list properly, so I apologize
> in advance if you get two copies of this.
>
> What has been on my mind about the GDK port (I'd like more input from
> Michael Latiolais on this, of course) is how to correctly follow
> Mark's low-latency model for network communications while still
> retaining the benefits of GDK. There are two areas to consider: the
> client side and the server side.
>
> The server side probably would simply be a module that uses GDK to do
> the widget drawing into Y buffers, and there could be some integration
> work with Y's theme engine and GTK's theme engine. This could also be
> extended to intercept all widget drawing calls so that most of the
> server-side drawing is done using GDK, but that's just a thought (I'm
> not advocating this at this point, as I don't want to subvert the
> excellent work of others doing pure Y widgets and drawing code).
>
> The client side is where it gets more messy. If we just had GDK send
> the drawn result as a Y canvas widget, that would fly in the face of
> the low-latency/low-bandwidth principle, sending all of those pixels
> over the network. I'm not sure of the most elegant way to solve
> this. I was going to work on something to the effect of packaging up
> the drawing of whatever widgets are present in Y and just sending the
> Y message (e.g. buttons, textboxes, etc.), but doing the drawing into
> a Y canvas widget and sending that (using more bandwidth) when Y
> doesn't offer the appropriate widget (tree widgets, etc.). Like I
> said, this might not be pretty, and injecting this stuff all over the
> place in GDK/GTK probably won't be accepted by the GTK team. I'd be
> interested to see what ideas anyone else has. Maybe just digging into
> the GDK code and trying a few things out is more productive than
> talking a lot about it at this point, though.
>
> As for readiness of Y for this, we can certainly begin writing some
> proof-of-concept parts of a GDK port at this point, but with the idea
> in mind that there will be some changes. The widget set is not mature
> enough to attempt using them yet from GDK, but we could easily start
> just using all canvas widgets (simpler port) and slowly change that to
> increase network speed. Additionally, the expected massage Mark wants
> to give to the module code might affect the server-side GDK module,
> but that work could likely begin. Now, just to find the time to do
> it... =D
>
> I think that this sort of thought about other widget APIs and how to
> integrate them properly with Y's model of doing things is probably
> pretty constructive, as these other APIs are probably the
> quickest/best way to gain applications, developers, and interest, not
> to mention it can increase compatibility with large amounts of code
> and programs quickly. All of these issues likely apply equally to Qt,
> wxWindows (or whatever it's called now), etc.
>
> Regards,
> Mike Farnsworth
>
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
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved