Hi, Denis. >>>>> In <[EMAIL PROTECTED]> >>>>> "Denis Oliver Kropp" <[EMAIL PROTECTED]> wrote: > You can get access to the IDirectFBSurface associated with > each GdkDrawable. It's quite inconvenient and nobody has added > an extension for easier access, yet.
> But I've just put together this code (should compile :-) Thank you! I understand how to get IDirectFBSurface from GdkDrawable through your code. I haven't tried your code because of my system trouble ;), so I'll try to compile and use it after a while. > If you don't keep the interface, i.e. if you don't store the > pointer for later usage, you can use simpler code without > the AddRef(), unless there are multiple threads accessing the > same GdkDrawable, but multi threading doesn't seem to be very > popular in the G world anyways ;) I see. I plan to use multi threading in my program, I'll take care. > Be aware that window (widget) surfaces are recreated upon > geometry changes etc. You can still use your more or less old > surface interfaces, but they will also have their old offset, > clipping etc. You mean that I should get surface again when window moves, right? > I've been thinking about rewriting the (sub)surface/drawable code for > quite some time now. GTK+-DirectFB could be made much faster, especially > when it comes to many GdkWindow's (sub windows) and/or geometry changes. Oh, great! I'm looking forward to seeing GTK+-DirectFB progress :) Regards, ==== Taiyo Watanabe <[EMAIL PROTECTED]>
