Re: Finding out if a widget is editable and/or has selection



Damian Ivereigh <damian cisco com> writes: 
> Is there a generic way to find out if a widget is editable (e.g. is able
> to recieve a paste). Right now I check if it is either of type
> GTK_IS_EDITABLE or GTK_IS_TEXT_VIEW and then proceed to check their
> editable flags, otherwise I presume it is not.

I think that's right for GTK 2. In the future, when we do the
menu/toolbar API reworking, the Edit menu may automatically 
do the right thing.

Havoc



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