Re: GdkDrawable from GtkDrawingArea and it's cairo surface

2011-07-25 Thread Carlos López Camey
thank you all, I now like this mailing list officially. I had it working before with Marteen's help but now it seems like I got an idea for some extra features :) 2011/7/25 richard boaz : > hi, > i do this same sort of thing in my stuff, but written before cairo was.  i > plan on converting all

Re: GdkDrawable from GtkDrawingArea and it's cairo surface

2011-07-25 Thread richard boaz
ah! i knew it. thanks paul, richard On Mon, Jul 25, 2011 at 2:41 PM, Paul Davis wrote: > 2011/7/25 richard boaz : > > > but i deliver this with a huge caveat: i do not like the solution, > something > > about the design is wrong (i can "feel" it). so, this reference is > intended > > for demo

Re: GdkDrawable from GtkDrawingArea and it's cairo surface

2011-07-25 Thread Paul Davis
2011/7/25 richard boaz : > but i deliver this with a huge caveat: i do not like the solution, something > about the design is wrong (i can "feel" it).  so, this reference is intended > for demonstration purposes only!  i will eventually come back to this and > find the proper architecture, but don

Re: GdkDrawable from GtkDrawingArea and it's cairo surface

2011-07-25 Thread richard boaz
hi, i do this same sort of thing in my stuff, but written before cairo was. i plan on converting all my drawing to cairo one day, thus must eventually solve this problem myself. so i took your original sample/example and expanded on it to demonstrate pixmap backing stores and how to use/referenc

Re: GdkDrawable from GtkDrawingArea and it's cairo surface

2011-07-24 Thread Maarten Bosmans
2011/7/24 Carlos López Camey : > Hello again, > > Let's say I'd like to save a GtkDrawingArea 'screenshot' to a file. > I'm able to do > > cairo_t *cr = gtkDrawingAreaWidget->window; > cairo_surface_t *screenshot = cairo_get_target(cr); > cairo_surface_write_to_png(screenshot,"screenshot.png"); > >

GdkDrawable from GtkDrawingArea and it's cairo surface

2011-07-23 Thread Carlos López Camey
Hello again, Let's say I'd like to save a GtkDrawingArea 'screenshot' to a file. I'm able to do cairo_t *cr = gtkDrawingAreaWidget->window; cairo_surface_t *screenshot = cairo_get_target(cr); cairo_surface_write_to_png(screenshot,"screenshot.png"); but what this code does is save a screenshot fo