Re: chubbiness reduction



On Fri, 7 Jul 2000, Daniel Richard G. wrote:

> On 7 Jul 2000, Owen Taylor wrote:
> 
> > But, basically, the idea is that a theme has complete control
> > over the style that is assigned to each widget. (And can pick
> > different style classes, even), via the:
> > 
> >   void (*rc_style_to_style) (GtkStyle   *style, GtkRcStyle *rc_style);
> > 
> > Function in GtkThemeEngine structure.
> 
> That function converts the engine-specific part of a GtkRcStyle to the
> engine-specific part of a GtkStyle. I don't see how it's supposed to find
> out what type of widgets the style is being applied to. 
> 
> I can specify widget-specific style bindings in gtkrc-- and {x,y}thickness
> values as engine-specific properties, as the Metal engine does-- but doing
> things that way is much *much* more of a hack. 

as havoc said already, in 1.3 the x/y thickness is per style, but i don't think
the rc parser got extended yet.

gimme a second here---

ok, the rc files can contain thicknesses now, with that, you are able
to specify default style attributes per widget class:

style "buttonthickness" {
  xthickness = 1
  ythickness = 1
}
class "GtkButton" style "buttonthickness"

now, we still need someone going through the code and fixing up widgets
that don't properly respect thickness settings, e.g. scrollbars, frame...

also gtkstyle.c prolly needs to be fixed in some places where it assumes
the thickness either is 2 or is at least 2.

> 
> 
> --Straker
> 

---
ciaoTJ







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