[gtk+] textview: Make cursor display again



commit de8b07c3dfb8b8ccc651977ae6d73fa757ed7841
Author: Benjamin Otte <otte redhat com>
Date:   Thu Aug 19 12:07:24 2010 +0200

    textview: Make cursor display again
    
    The code for initializing the clip rectangle was accidentally deleted in
    a previous patch. Put it back.

 gtk/gtktextdisplay.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktextdisplay.c b/gtk/gtktextdisplay.c
index 5f79ce4..8e6d452 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 ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]