mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 00:30:08 +00:00
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:
parent
0e1eee26b9
commit
de8b07c3df
@ -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 ();
|
||||
|
Loading…
Reference in New Issue
Block a user