entry: ensure valid GdkWindow before set_invisible_cursor()
If the window has not yet been created, then we can't set the invisible cursor yet. This can happen in situations where the widget is in a revealer with type-to-search functionality.
This commit is contained in:
@@ -4778,9 +4778,11 @@ gtk_entry_obscure_mouse_cursor (GtkEntry *entry)
|
||||
if (priv->mouse_cursor_obscured)
|
||||
return;
|
||||
|
||||
set_invisible_cursor (priv->text_area);
|
||||
|
||||
priv->mouse_cursor_obscured = TRUE;
|
||||
if (priv->text_area)
|
||||
{
|
||||
set_invisible_cursor (priv->text_area);
|
||||
priv->mouse_cursor_obscured = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
static gint
|
||||
|
||||
Reference in New Issue
Block a user