Re: Widget states for 3.0 (and 2.18?)
- From: Thomas Wood <thos gnome org>
- To: Owen Taylor <otaylor redhat com>
- Cc: Cody Russell <bratsche gnome org>, gtk-devel-list gnome org
- Subject: Re: Widget states for 3.0 (and 2.18?)
- Date: Mon, 17 Aug 2009 16:34:41 +0100
On Mon, 2009-08-17 at 10:58 -0400, Owen Taylor wrote:
>
> What happens when you hover over a pressed-in togglebutton?
In GTK+ you get GTK_SHADOW_IN and GTK_STATE_PRELIGHT. In a hypothetical
new API the state would be "prelight" and the bitfield flags would
include "checked".
>
> (As Matthias says, if you investigate the current GTK+ state types, once
> you get beyond the trivial stuff things fall apart. I don't think you'll
> find any rational reason that a scrollbar trough is drawn in the active
> color, other than the active color is dark, and scrollbars needed
> to be drawn dark.)
Yes, I'm aware of how GTK+ uses (and abuses) state types. GtkNotebook is
another example of these oddities; the "active" tab is drawn with
GTK_STATE_NORMAL and the "inactive" tabs are drawn with
GTK_STATE_ACTIVE!
Regards,
Thomas
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]