]> Pileus Git - ~andy/gtk/commitdiff
textview: Make cursor display again
authorBenjamin Otte <otte@redhat.com>
Thu, 19 Aug 2010 10:07:24 +0000 (12:07 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 19 Aug 2010 10:08:23 +0000 (12:08 +0200)
The code for initializing the clip rectangle was accidentally deleted in
a previous patch. Put it back.

gtk/gtktextdisplay.c

index 5f79ce4ce21a4bea95ef8a98038315c4c7df9585..8e6d4521b7164205cafc4ec29b53b3ca951f508f 100644 (file)
@@ -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 ();