Commit de8b07c3 authored by Benjamin Otte's avatar Benjamin Otte

textview: Make cursor display again

The code for initializing the clip rectangle was accidentally deleted in
a previous patch. Put it back.
parent 0e1eee26
......@@ -835,6 +835,12 @@ gtk_text_layout_draw (GtkTextLayout *layout,
cairo_rectangle (cr, x, y, width, height);
cairo_clip (cr);
/* cursor code needs this */
clip.x = x;
clip.y = y;
clip.width = width;
clip.height = height;
gdk_cairo_set_source_color (cr, &widget->style->text[widget->state]);
text_renderer = get_text_renderer ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment