Dear Andrew, Dov,
Thank you for your replies. Maybe my original question was not so clear; I've
tried to clear things up below.
[Andrew wrote]
As is compulsory on this list :) I note in passing that it turns out
that this [poorly-named] list is the one for discussion about _hacking_
on GTK.
Unfortunately this won't work for me. gdk_cairo_create() creates a Cairo
surface, then it creates a Cairo context from this surface, and then it
destroys the Cairo surface. What I am looking for is a function that creates
a Cairo surface and returns it directly. Then I can use pycairo to
Hi everybody,
I am looking for a way to obtain a Cairo surface from a GdkPixmap.
Just for reference, a few years ago one user was looking for the same
functionality:
http://mail.gnome.org/archives/gtk-devel-list/2005-September/msg00138.html
The function _gdk_drawable_ref_cairo_surface does
On Sat, 2009-06-13 at 19:50 -0700, Michiel de Hoon wrote:
I am looking for a way to obtain a Cairo surface from a GdkPixmap.
You're probably looking for gdk_cairo_create() or
gdk_cairo_set_source_pixmap(), depending on what exactly you're up to.
On Fri, 2005-09-23 at 14:21 +0200, Alexander Larsson wrote:
I'm trying to draw a GdkPixmap to a window with a transformation. I can
do this using:
surface = cairo_xlib_surface_create (gdk_x11_drawable_get_xdisplay
(widget-window),
gdk_x11_drawable_get_xid