Re: [gtk-list] Re: Cosmetic problem with GTK_STATE_PRELIGHT



On 20 Dec 1997, Owen Taylor wrote:

> I don't think this is the problem here. The button isn't staying
> in the pressed state, it is staying in the PRELIGHT state - which
> happens because once it is insensitive, it will never get the
> "leave" event that tells it to return to the normal state.
> 
> A workaround would be to do:
> 
>   gtk_widget_set_state (button, GTK_STATE_NORMAL);
>   gtk_widget_set_sensitive (button, FALSE);
> 
> The real fix needs to be in GTK, but I haven't figured out what
> needs to be done yet.

I'll note here that I've seen similar problems (buttons staying in both
pressed and prelight states) when fooling around with modal dialogs
triggered by a button.

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




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