diff options
Diffstat (limited to 'gtk/gtktextdisplay.c')
-rw-r--r-- | gtk/gtktextdisplay.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/gtktextdisplay.c b/gtk/gtktextdisplay.c index a41f5b881a..383f52d1a9 100644 --- a/gtk/gtktextdisplay.c +++ b/gtk/gtktextdisplay.c @@ -78,6 +78,7 @@ #include "config.h" #include "gtktextdisplay.h" #include "gtkwidgetprivate.h" +#include "gtkstylecontextprivate.h" #include "gtkintl.h" /* DO NOT go putting private headers in here. This file should only @@ -783,9 +784,9 @@ render_para (GtkTextRenderer *text_renderer, GdkRGBA cursor_color; cairo_t *cr = text_renderer->cr; - /* we draw text using base color on filled cursor rectangle of cursor color - * (normally white on black) */ - _gtk_widget_get_cursor_color (text_renderer->widget, &cursor_color); + /* we draw text using base color on filled cursor rectangle of cursor color + * (normally white on black) */ + _gtk_style_context_get_cursor_color (context, &cursor_color, NULL); cursor_rect.x = x + line_display->x_offset + line_display->block_cursor.x; cursor_rect.y = y + line_display->block_cursor.y + line_display->top_margin; |