Re: Cairo now a dependency of HEAD GTK+



On Thu, 2005-02-03 at 18:31 -0500, Owen Taylor wrote:
> One API is added:
> 
> /**
>  * gdk_drawable_set_cairo_target:
>  * @drawable: a #GdkDrawable
>  * @cr: a cairo context
>  *
>  * Sets the given drawable as the target surface for a Cairo context.
>  * Note that when @drawable is a window and gdk_window_begin_paint()
>  * has been called, the target surface will be set to the temporary
>  * backing pixmap, so you can only use the Cairo context until
>  * the matching call to gdk_window_end_paint().
>  *
>  * Since: 2.10
>  **/
> void
> gdk_drawable_set_cairo_target (GdkDrawable *drawable,
>                                cairo_t     *cr);

This is backward, right? It should be:

 cairo_set_gdk_drawable_target (cairo_t *cr, GdkDrawable *drawable);

How about
gdk_set_cairo_target (cairo_t *cr, GdkDrawable *drawable)
or 
gdk_drawable_set_as_cairo_target (GdkDrawable *drawable,
                                  cairo_t     *cr);

Havoc





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]