diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-06-12 21:47:29 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-06-12 21:47:29 +0000 |
commit | c50b3edfdc88e2be7b309d8eb5ee29fc58fda70b (patch) | |
tree | d757fa125d63033b3fd4ac23924df0b5c621afdb /gtk | |
parent | 789d271164e306053cbd7fcd5503a0197a39b74f (diff) | |
download | gtk+-c50b3edfdc88e2be7b309d8eb5ee29fc58fda70b.tar.gz |
Add an informative g_warning() when the entry has lost a focus-out-event.
Wed Jun 12 17:46:53 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c (blink_cb): Add an informative
g_warning() when the entry has lost a focus-out-event.
(#78305, Michel Selten)
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkentry.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index 35554e4aa4..a39a02cfff 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -4199,6 +4199,13 @@ blink_cb (gpointer data) GDK_THREADS_ENTER (); entry = GTK_ENTRY (data); + + if (!GTK_WIDGET_HAS_FOCUS (entry)) + { + g_warning ("GtkEntry - did not receive focus-out-event. If you\n" + "connect a handler to this signal, it must return\n" + "FALSE so the entry gets the event as well"); + } g_assert (GTK_WIDGET_HAS_FOCUS (entry)); g_assert (entry->selection_bound == entry->current_pos); |