Re: GtkScrollbar marker API discussion



On Wed, 2010-07-07 at 00:42 +0100, Alberto Ruiz wrote:
> Hi Gtk+ hackers,

> The marker addition call would look something like this:
> 
> gtk_scrollbar_add_mark (GtkScrollbar *scrollbar, gdouble mark, gchar*
> mark_class);
> 
> There would also be some stock markers with default colours.
> mark_class can be null and the default highlight colour  will be used.
> 
> Again, how and where to set and extend the colour mapping is sort of a
> blurry spot to me.


It's probably important to get the theme integration correct here, so
people can adjust the default highlight colours so that they don't clash
with any other custom colours. Also, a different theme may want to draw
markers in some new fancy way, so it might be important to make sure the
marker information is available when the theme draws the scrollbar
background. Alternatively, we could add a new "marker" drawing function
in GtkStyle, but ideally we want to move away from using abstract
drawing methods.

Regards,

Thomas



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