Deprecate GdkGC?

2005-12-01 Thread Murray Cumming
Shouldn't GdkGC be deprecated now that we have cairo contexts? Murray Cumming [EMAIL PROTECTED] www.murrayc.com www.openismus.com ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Re: Deprecate GdkGC?

2005-12-01 Thread milosz derezynski
I agree but it doesn't sound really easy as GtkStyle holds a number of GdkGCs for the style colors.I am currently unaware of whether the style engines access them directly but i'd rather think they do, so this would require the style engines to 1) only use the GdkColors of the style and ("while we'

Re: Deprecate GdkGC?

2005-12-01 Thread Murray Cumming
> I agree but it doesn't sound really easy as GtkStyle holds a number of > GdkGCs for the style colors. So, I guess that should be ported too. In general, deprecation doesn't mean that you may not use it. Deprecation is n't breaking. > I am currently unaware of whether the style engines access

Re: Deprecate GdkGC?

2005-12-01 Thread milosz derezynski
Yes, that's what i meant by "deprecation by policy" (i.e. you'd say it's deprecated, but don't remove the code or anything, you just discourage it's use; although that might be not the proper word for it, i'm sorry in that case as i'm not a native english speaker) The problem is just there are a do

Re: Deprecate GdkGC?

2005-12-01 Thread milosz derezynski
And in addition all current style engines would need to be ported, since once the GdkGCs are declared as deprecated, it would as a consequence deprecate the styles engine's code as well. On 12/1/05, milosz derezynski <[EMAIL PROTECTED]> wrote: Yes, that's what i meant by "deprecation by policy" (i.

Re: Deprecate GdkGC?

2005-12-01 Thread milosz derezynski
One first step could be to back all gdk_draw_*() functions with actual cairo drawing (disabling antialiasing so compatibility is kept) and reading only the color values off the GCs, and then officially deprecate the GdkGCs. (Not entirely sure if that makes sense, RFC)That way at least the GdkGCs wo

Re: Deprecate GdkGC?

2005-12-01 Thread Federico Mena Quintero
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,

Re: Deprecate GdkGC?

2005-12-02 Thread milosz derezynski
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.gno

Re: Deprecate GdkGC?

2005-12-02 Thread Federico Mena Quintero
On Fri, 2005-12-02 at 09:43 +0100, milosz derezynski wrote: > 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, anyth

Re: Deprecate GdkGC?

2005-12-02 Thread milosz derezynski
On 12/2/05, Federico Mena Quintero <[EMAIL PROTECTED]> wrote: On Fri, 2005-12-02 at 09:43 +0100, milosz derezynski wrote:> 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_*(

Re: Deprecate GdkGC?

2005-12-02 Thread milosz derezynski
I just saw you've added it to the 2.10 API freeze, well i'm not sure it (the patch) can be kept as it is but i strongly favor that we have a function with this name that does the same that gdk_cairo_set_source_pixbuf () does (so that you can use cairo operations to draw a drawable onto a drawable).

Re: Deprecate GdkGC?

2005-12-02 Thread milosz derezynski
Ok i've started writing it, there are a few FIXMEs which i might resolve myself during writing, gotta ask cworth about it.The document is located and will be for the time being (unless we convert it to doxygen/gtk-doc in the meantime) here: http://beep-media-player.org/~mderezynski/cairo.txtMiloszO

Re: Deprecate GdkGC?

2005-12-03 Thread Alexander Larsson
On Fri, 2005-12-02 at 09:43 +0100, milosz derezynski wrote: > 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, anyth

Re: Deprecate GdkGC?

2005-12-05 Thread Federico Mena Quintero
On Sat, 2005-12-03 at 03:28 +0100, milosz derezynski wrote: > http://beep-media-player.org/~mderezynski/cairo.txt Fantastic. I've started adding DocBook markup to this, and will commit it to the GTK+ docs when I'm done with that. Milosz, if you make changes to your text, could you please forwar