Ignore FOCUSOUT
- From: Deekshit M <dmantamp yahoo com>
- To: gtk-app-devel-list gnome org
- Subject: Ignore FOCUSOUT
- Date: Mon, 18 Apr 2005 10:52:52 -0700 (PDT)
Hi all,
In my focus out event, I validate the string
specified in the entry box for which the focus out has
been generated. If the value is invalid, I want the
focus to stay there itself. I tried to return TRUE
from the callback for invalid enty, I got the error.
gtkEntry-did not recieve focus-out-event. If you
connect a handler to this signal, it must return FALSE
so the entry gets the evnt as well.
And an error message(message box) is diplayed
throwing
Gtk-ERROR**: file gtkentry.c: line 4856 (blink_cb):
assertion failed:(GTK_WIDGET_HAS_FOCUS(entry))
aborting....
I tried to set focus using gtk_window_set_focus, for
the same entry. But again I get the same error message
even if I return FALSE.
Please help me
Thanks
Deekshit M
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]