Re: widget colors/fonts



On Thu, Aug 10, 2000 at 12:41:47PM +0500, Vlad Harchev wrote:
> On Thu, 10 Aug 2000, Martijn van Beers wrote:
> 
> > On Wed, Aug 09, 2000 at 11:14:35PM -0400, Havoc Pennington wrote:
> > > 
> > > Hi,
> > > 
> > > I think we have discussed convenience routines for modifying widget
> > > styles, but never proposed an API. So here is a proposal:
> > > 
> > > void gtk_widget_set_color (GtkWidget *widget,
> > >                            GtkRcFlags component,
> > >                            GtkStateType state,
> > >                            GdkColor  *color);
> > 
> > What's the purpose of this? Seems to me it only makes it easier for apps
> > to hard-code colors that clash with your theme's.
> 
>  I think there are cases in which this would be useful (like marking
> GtkEntries with errors, etc) - so such functionality should be present.

AFAIK, you should be doing that by having your app parse an additional
gtkrc, which the user can adjust to fit with his theme.


Martijn




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