Re: Widget states for 3.0 (and 2.18?)



On Mon, 2009-08-17 at 15:11 +0100, Thomas Wood wrote:
> On Mon, 2009-08-17 at 15:01 +0100, Neil Jagdish Patel wrote:
> > 
> > Sounds like the checkbox is "active" (checked), and the user is hovering
> > over it, hence prelight. Not sure that's how it currently works, though.
> > 
> 
> This is not how it works in GTK+. The "checked" state is indicated by
> the GtkShadowType passed to the drawing function (gtk_paint_check),
> where:
> 
> GTK_SHADOW_IN = checked
> GTK_SHADOW_OUT = unchecked
> GTK_SHADOW_ETCHED_IN = inconsistent

Right. Although in my mind the checkbox is active when in that state
(same for radiobuttons), so it would make sense to have a bit-field for
states.

Anyway, I'm not saying which way is better, was just explaining what I
thought Cody meant.

-- Neil

> Regards,
> 
> Thomas
> 




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