Re: [gtk-list] Re: GTK_SHADOW_SHALLOW_IN



On Fri, 12 Dec 1997, Patrice Fortier wrote:

>   When you'll do that, keep in mind that the ?thickness resource in
> the gtkstyleclass will still be 2, even if your draw function (well,
> sort of) is 1 pixel-wide.

It probably makes the most sense to keep it at two pixels, so that packing
isn't thrown off unnecesarily. The inner pixels would be the same as the
background, is all.

In any case, I'm not going to implement this at the moment.

> > The idea of dynamic styles sounds attractive, but I wonder at the cost of
> > supporting it, both in time spent in the style routines, and in the
> > duplication cost (it's unlikely two people will write identical widgets,
> > but they might do so for styles.) 
> 
>   The Style widget is ready for this (I mean for the modification 
> of the current styleclass), but what we need is a nice API to change 
> the class (or its contents).

I wasn't talking about a complete dynamic replacement (i.e., switch from
Gtk to AfterStep, or whatever), but rather a dynamic addition:

   gtk_install_style_shadow_shadows();

much as all of the widgets plug themselves into the library while it is
running. 

-- 
Kenneth Albanowski (kjahds@kjahds.com, CIS: 70705,126)




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