Initialize cursor alpha to 1.0

That way, non-animated cursors don't disappear.
This commit is contained in:
Benjamin Otte 2019-10-16 15:02:52 +02:00
parent d0e14f79a6
commit c2a32afe97

View File

@ -1681,6 +1681,7 @@ gtk_text_init (GtkText *self)
priv->truncate_multiline = FALSE;
priv->xalign = 0.0;
priv->insert_pos = -1;
priv->cursor_alpha = 1.0;
priv->selection_content = g_object_new (GTK_TYPE_TEXT_CONTENT, NULL);
GTK_TEXT_CONTENT (priv->selection_content)->self = self;