Re: focus-out-event and GtkEntry
- From: Zvi Sebrow <zvi sebrow verizon net>
- To: gtk-app-devel-list gnome org
- Subject: Re: focus-out-event and GtkEntry
- Date: Thu, 06 Sep 2007 21:03:31 -0400
My focus out signal handler DID return FALSE; the problem is that it popped
up a
dialog box---which steals the focus--before the focus-out-event gets to
return the FALSE, and while
the dialog box is open and alive and waiting for the user to hit OK, I got
the error....
but i found the solution: i simply used g_signal_connect_after() for the
focus-out-event,
and so the default handler was already run when i opened the dialog box, and
all is well!
thanks
----- Original Message -----
From: "David Necas (Yeti)" <yeti physics muni cz>
To: <gtk-app-devel-list gnome org>
Sent: Thursday, September 06, 2007 2:49 PM
Subject: Re: focus-out-event and GtkEntry
On Thu, Sep 06, 2007 at 02:49:12PM -0400, Zvi Sebrow wrote:
I need to check data a user inputs on one of numerous GtkEntry's on
window,
and I need to handle the situation when the entry loses focus (by TABing
out
of the field, or by mouse control. When I encouter bad input, I bring up
a
dialog box. The problem is I get an GtkWarning and GtkError:
...
Check the "focus-out-event" signal handler prototype
http://library.gnome.org/devel/gtk/stable/GtkWidget.html#GtkWidget-focus-out-event
*including the return value*, you must return FALSE if you
want the default handler to run.
Yeti
--
http://gwyddion.net/
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]