Forcing focus to a GtkEntry



Hello all
I have the following problem:
I have a window with many entries and I want to validate the text in an
entry
when the focus-out signal is received, and force the focus to stay in
the same entry if its present text is not valid.
I have tried gtk_widget_grab_focus but it works when just one entry has
to be checked; instead, if the focus is passed to another entry needing
validation
the is a sort of oscillation between the two entries (both trying of
gaining focus) and the system become unusable.
Do you know a possible soluiton to this problem
Thank you in advance.


G. L. Gragnani
-- 
 Gian Luigi Gragnani               DIBE -  University of Genoa
 Via Opera Pia 11A             16145 Genova              Italy
 Tel.   + 39 010 353 2244             Fax    + 39 010 353 2245
 mailto:gragnani@dibe.unige.it




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