I want that for sharing Oficina (paint) activity through the mesh.<br>When a user enters in a shared drawing, the owner would send his pixmap for this new user.<br>Maybe serializing the pixmap wouldn't be a bad idea, cause it's passed once per user who join the activity and wouldn't let the activity slow after loaded.
<br>If you have any other advice, please let me know.<br><br>Thanks<br><br><div><span class="gmail_quote">2007/11/28, Tomeu Vizoso <<a href="mailto:tomeu@tomeuvizoso.net">tomeu@tomeuvizoso.net</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, 2007-11-27 at 19:29 -0200, Rafael Barbolo Lopes wrote:<br>> Is it possible to exchange gtk objects (a gtk.gdk.Pixmap) thought DBus<br>> tubes?<br>> If it is, can someone help me to find a way to do this?<br>
> I think it's necessary to create a BusObject, but I can't get it<br>> working using this quick tutorial:<br>> <a href="http://dbus.freedesktop.org/doc/dbus-python/doc/tutorial.html#claiming-a-bus-name">
http://dbus.freedesktop.org/doc/dbus-python/doc/tutorial.html#claiming-a-bus-name</a><br><br>You cannot just use a remote object as if it was a gtk.gdk.Pixmap, they<br>are just two very different pieces of code.<br><br>My guess is that for doing this, you would need to get the Pixmap from
<br>the X server to the client side (Pixbuf), serialize it somehow, and pass<br>it as a dbus.ByteArray or as a path to a temp file in disk (if that's<br>possible in Rainbow). The other side would need to create a Pixbuf from
<br>it and send it to the server as a Pixmap.<br><br>This process is not only convoluted, but will be also quite slow.<br><br>Perhaps there is some way in X for two processes to share pixmaps, but I<br>don't know about that.
<br><br>Why you want to do that? If you explain it, perhaps we'll be able to<br>give better advice.<br><br>Regards,<br><br>Tomeu<br><br></blockquote></div><br><br clear="all"><br>-- <br>Rafael Barbolo Lopes<br><a href="http://rafaelbarbolo.blogspot.com/">
http://rafaelbarbolo.blogspot.com/</a>