diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-12-29 19:26:34 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-12-29 19:26:34 +0000 |
commit | 4193650dc98002761101b4a84422e7fd0662aef9 (patch) | |
tree | b23f931fe76e247960e8858c686955d7edfc078e /gtk/gtktextview.c | |
parent | 35ac74a03702f1e2e372f2a00639d0301be6cc41 (diff) | |
download | gtk+-4193650dc98002761101b4a84422e7fd0662aef9.tar.gz |
Don't die in an assertion if focus went missing. Just warn, clean up and
2006-12-29 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentry.c (blink_cb):
* gtk/gtktextview.c (blink_cb): Don't die in an assertion
if focus went missing. Just warn, clean up and continue.
(#374378)
Diffstat (limited to 'gtk/gtktextview.c')
-rw-r--r-- | gtk/gtktextview.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index 6980d09618..5f8529e9a1 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -4514,10 +4514,13 @@ blink_cb (gpointer data) g_warning ("GtkTextView - did not receive focus-out-event. If you\n" "connect a handler to this signal, it must return\n" "FALSE so the text view gets the event as well"); + + gtk_text_view_check_cursor_blink (text_view); + + return FALSE; } g_assert (text_view->layout); - g_assert (GTK_WIDGET_HAS_FOCUS (text_view)); g_assert (text_view->cursor_visible); visible = gtk_text_layout_get_cursor_visible (text_view->layout); |