Re: Block focus change



Krzysztof Magrel wrote:

How can I not let to change focus.
I wanna to stay in current widget (GtkEntry) until the good value isn't
proper.

Hello,
Try gtk_grab_add(), gtk_grab_remove() functions:
First grab your entry widget, second use gtk_grab_remove in callback
when you'll get the proper input.

http://developer.gnome.org/doc/API/2.0/gtk/gtk-general.html

Olexiy




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