Re: Deprecate GdkGC?



Well, i volunteer for this. I have used cairo extensively for coding bmpx and i'm going to get to a very good point in documenting at least all the equivalents of gdk_draw_*()

Federico: In which format should i write this, anything that would be preferred?

PS: I've created a bug (http://bugzilla.gnome.org/show_bug.cgi?id=322996) and added a patch that adds a function gdk_cairo_set_source_drawable (), it's just 2 function calls but i think it's more logical to the API user and makes for a more consistent API, and _gdk_drawable_ref_cairo_surface () is private anyway


On 12/2/05, Federico Mena Quintero <federico ximian com> wrote:
On Thu, 2005-12-01 at 22:50 +0100, milosz derezynski wrote:
> I agree but it doesn't sound really easy as GtkStyle holds a number of
> GdkGCs for the style colors.

... and apps still do this:

gdk_gc_set_clip_rectangle (widget->style->black_gc, &my_rect);
gdk_draw_pixbuf (widget->window,
                 widget->style->black_gc,
                 my_pixbuf,
                 ...);
gdk_gc_set_clip_rectangle (widget->style_black_gc, NULL);

I mean, that would still work.  But if we schedule GCs for deprecation,
we need really really good docs on how to migrate everything to Cairo.

Actually, we have needed those since Cairo became the preferred drawing
API instead of gdk_draw_*()...

Any takers?

  Federico




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