From 9e203417752584b923cf5baec8940836ff2c0bcb Mon Sep 17 00:00:00 2001 From: Paolo Borelli Date: Sat, 29 Jan 2011 12:38:50 +0100 Subject: Use GtkRGBA for the cursor color priv api. --- gtk/gtktextdisplay.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk/gtktextdisplay.c') diff --git a/gtk/gtktextdisplay.c b/gtk/gtktextdisplay.c index 7af3857d6c..a41f5b881a 100644 --- a/gtk/gtktextdisplay.c +++ b/gtk/gtktextdisplay.c @@ -780,7 +780,7 @@ render_para (GtkTextRenderer *text_renderer, (at_last_line && line_display->insert_index == byte_offset + line->length))) { GdkRectangle cursor_rect; - GdkColor cursor_color; + GdkRGBA cursor_color; cairo_t *cr = text_renderer->cr; /* we draw text using base color on filled cursor rectangle of cursor color @@ -797,7 +797,7 @@ render_para (GtkTextRenderer *text_renderer, gdk_cairo_rectangle (cr, &cursor_rect); cairo_clip (cr); - gdk_cairo_set_source_color (cr, &cursor_color); + gdk_cairo_set_source_rgba (cr, &cursor_color); cairo_paint (cr); /* draw text under the cursor if any */ -- cgit v1.2.1