Re: Docs for the gtk-style-context branch changes



Hi,

On Tue, Oct 19, 2010 at 7:49 AM, Carlos Garnacho <carlosg gnome org> wrote:
> * There is no intuitive replacement for gtk_widget_modify_*(). If we are
> to drop GtkStyle, I think that 3rd party libraries and apps implementing
> widgets could define regions and attach a GtkStyleProvider with the
> fallback priority to theme these, this way themes and users' CSS have an
> oportunity to theme these differently if they want, although others I've
> talked with think gtk_widget_modify_*() is handy API that shouldn't go
> away.

I think what's important here is that there's a quick/easy way to
"just set the color" on the widget.
Both the "foreground" and "background" color (currently you have to
know if fg is "text" or "fg" of course but no need to preserve that
distinction afaik)

The reason for modify_* was to fix this FAQ:
http://ometer.com/gtk-colors.html
That page still gets a fair bit of traffic from google, fwiw.

As long as you keep that FAQ from coming back (i.e. have some
reasonably obvious single-function-call way to "set the color of this
text or background") it ought to be fine.

Havoc


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