Compare commits

...

1 Commits

Author SHA1 Message Date
Matthias Clasen
db023ba79a text: Don't warn if we blink unfocused
The warning message contains advice that is no longer
accurate (it comes from a time before event controllers),
and this situation regularly happens in practice, when
the focus moves to a child of GtkText such as the menu or
the Emoji chooser. Just stop blinking without complaining.

Fixes: #2979
2020-08-06 17:32:41 -04:00

View File

@@ -6427,10 +6427,6 @@ blink_cb (GtkWidget *widget,
if (!gtk_widget_has_focus (GTK_WIDGET (self)))
{
g_warning ("GtkText - did not receive a focus-out event.\n"
"If you handle this event, you must return\n"
"GDK_EVENT_PROPAGATE so the self gets the event as well");
gtk_text_check_cursor_blink (self);
return G_SOURCE_REMOVE;
}