On Wed, Feb 15, 2006 at 11:50:01AM +0000, Per Hedbor () @ Pike (-) developers forum wrote:
ok, from the docs (comparing GDK.Pixmap() with GTK.Pixmap()) i thought GTK.Pixmap() would be the one doing the sending.
No, GTK.Pixmap does not really talk with the X-server at all, only to GDK.Pixmap objects. It's a pure client-level abstraction (a UI object that draws a GDK.Pixmap)
The solution is to actually handle refcounts correctly for GDK objects. Since they are now actual objects (in GTK 2.0) it's possible. :-)
is that a problem in the pike gtk1 bindings?
Yes. It's not really possible to solve cleanly in GTK1. Hence this problem.
A somewhat unrelated issue: On Windows you need to keep the GDK.Pixmap used as icon around, since it's not refcounted in the 'server' (indeed, there is no server at all).
Same probably goes for the various other GDK ports.