summaryrefslogtreecommitdiff
path: root/gtk/gtktextdisplay.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-08-19 12:07:24 +0200
committerBenjamin Otte <otte@redhat.com>2010-08-19 12:08:23 +0200
commitde8b07c3dfb8b8ccc651977ae6d73fa757ed7841 (patch)
treecb9c5c6c174dbf8517a3c9136e8c726770984dee /gtk/gtktextdisplay.c
parent0e1eee26b9ab08cdcfafaddbd6894c0a65c686f1 (diff)
downloadgtk+-de8b07c3dfb8b8ccc651977ae6d73fa757ed7841.tar.gz
textview: Make cursor display again
The code for initializing the clip rectangle was accidentally deleted in a previous patch. Put it back.
Diffstat (limited to 'gtk/gtktextdisplay.c')
-rw-r--r--gtk/gtktextdisplay.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtktextdisplay.c b/gtk/gtktextdisplay.c
index 5f79ce4ce2..8e6d4521b7 100644
--- a/gtk/gtktextdisplay.c
+++ b/gtk/gtktextdisplay.c
@@ -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 ();