Re: [gtk-list] Re: how to turn off prelight on buttons ?
- From: Paul Barton-Davis <pbd op net>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: how to turn off prelight on buttons ?
- Date: Fri, 15 Oct 1999 23:30:45 -0400
>i don't know if there's a way to stop a button from setting
>its state to PRELIGHT, but you can use the same colors for
>the button for both NORMAL and PRELIGHT modes.
>you can do this like that:
thanks. the problem with this approach is that PRELIGHT is reached
from two states, NORMAL and ACTIVE. Thus, using the NORMAL style as
the PRELIGHT one doesn't actually stop it from being apparent when
NORMAL and ACTIVE are different.
it seems that the best (only?) way is to catch the "state_changed"
signal, and if the current widget state is PRELIGHT, change it back to
the old value handed to the signal handler.
i'd prefer a way to disable a button from ever toggling its state to
PRELIGHT, but at least its a consistent system as it stands :)
] [Thread Prev