Re: [libcroco-list] Two patches..



On Sun, 2004-03-07 at 16:43 +0100, Dodji Seketeli wrote:

> We could define the prototype of a user supplied system color handler:
> 
> typedef void (CRSystemColorHandler* ) (CRRgb *an_rgb, 
>                                        const gchar *a_system_color) ;
> 
> That handler could be set via 
> cr_rgb_set_system_color_handler (CRRgb *a_this,
>                                  CRSystemColorHandler *a_handler) ;

> Is that the kind of thing you were thinking about ?

Initially I was just thinking of having a user call a function upon
startup which passes in a table for all the system colors at once, like
gv_standard_colors, but the handler idea had crossed my mind.

The advantage of a single table is that you don't go calling a handler
function each time one is encountered.

It does have the disadvantage of the full table needed to be constructed
even if most of them are not used so may not be as user friendly.



David

-- 
Make your website SCREEM - Site Creating & Editing EnvironMent

URL:  http://www.screem.org/
Mail: david screem org

Attachment: signature.asc
Description: This is a digitally signed message part



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