<br><br><div class="gmail_quote">2012/9/22 Simon Sapin <span dir="ltr"><<a href="mailto:simon.sapin@exyr.org" target="_blank">simon.sapin@exyr.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I’m not very familiar with GTK (I use Pango and cairo without GTK) but apparently the magic function is gdk_cairo_create which returns a cairo context:<br>
<br>
<a href="http://developer.gnome.org/gdk3/stable/gdk3-Cairo-Interaction.html#gdk-cairo-create" target="_blank">http://developer.gnome.org/gdk3/stable/gdk3-Cairo-Interaction.html#gdk-cairo-create</a><br>
<br></blockquote></div><br>Just a small note: as GTK3 has fully transitioned to cairo internally,<br>you will receive a cairo context in the draw-event (formerly "expose-event") callback,<br>so you can use that directly.<br>