textview: Make cursor display again

The code for initializing the clip rectangle was accidentally deleted in
a previous patch. Put it back.
This commit is contained in:
Benjamin Otte 2010-08-19 12:07:24 +02:00
parent 0e1eee26b9
commit de8b07c3df

View File

@ -835,6 +835,12 @@ gtk_text_layout_draw (GtkTextLayout *layout,
cairo_rectangle (cr, x, y, width, height); cairo_rectangle (cr, x, y, width, height);
cairo_clip (cr); 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]); gdk_cairo_set_source_color (cr, &widget->style->text[widget->state]);
text_renderer = get_text_renderer (); text_renderer = get_text_renderer ();