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 would lose their actual meaning within GDK and thus become deprecated by implication. The biggest problem in removing the GdkGCs are really the style engines.


On 12/1/05, milosz derezynski <[EMAIL PROTECTED]> wrote:
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.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 dozens of style engines and they use the GdkGCs directly, so basically all style engine writers would be encouraged to use cairo for drawing and not access the GdkGCs.


On 12/1/05, Murray Cumming <[EMAIL PROTECTED]> wrote:

> 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 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 at") 2) add an alpha
> value
> to GdkColor like the r/g/b ones already are (?)
>
> Sounds like a long process of deprecation by policy, but i agree that
> GdkGCs
> don't make much sense anymore if at all.
>
> Milosz
>
> On 12/1/05, Murray Cumming <[EMAIL PROTECTED]> wrote:
>>
>> 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
>>
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-devel-list
>


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

Reply via email to