Re: gtkentry and return key



Mattias Gaertner ha scritto lo scorso 02/11/2006 02:35:
> Hi all,
> 
> The gtkentry emits an 'activate' signal when you press return in it.
> Can this be deactivated, so that the key is not handled by the gtkentry?
> I want to use a generic key function.
> 

You can connect a callback to the insert_text event associated to your
GtkEntry and then stop signal emission if the ascii code of the inserted
character is equal to the key you need to intercept.





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