DBus signature for gtk objects

Tomeu Vizoso tomeu at tomeuvizoso.net
Wed Nov 28 05:30:34 EST 2007


On Tue, 2007-11-27 at 19:29 -0200, Rafael Barbolo Lopes wrote:
> Is it possible to exchange gtk objects (a gtk.gdk.Pixmap) thought DBus
> tubes?
> If it is, can someone help me to find a way to do this?
> I think it's necessary to create a BusObject, but I can't get it
> working using this quick tutorial: 
> http://dbus.freedesktop.org/doc/dbus-python/doc/tutorial.html#claiming-a-bus-name

You cannot just use a remote object as if it was a gtk.gdk.Pixmap, they
are just two very different pieces of code.

My guess is that for doing this, you would need to get the Pixmap from
the X server to the client side (Pixbuf), serialize it somehow, and pass
it as a dbus.ByteArray or as a path to a temp file in disk (if that's
possible in Rainbow). The other side would need to create a Pixbuf from
it and send it to the server as a Pixmap.

This process is not only convoluted, but will be also quite slow.

Perhaps there is some way in X for two processes to share pixmaps, but I
don't know about that.

Why you want to do that? If you explain it, perhaps we'll be able to
give better advice.

Regards,

Tomeu




More information about the Devel mailing list