summaryrefslogtreecommitdiff
path: root/gtk/gtktextdisplay.c
diff options
context:
space:
mode:
authorPaolo Borelli <pborelli@gnome.org>2011-01-29 12:47:09 +0100
committerPaolo Borelli <pborelli@gnome.org>2011-01-29 13:13:42 +0100
commit001697a22a6e094ca37f4f6c230161b08dff5c20 (patch)
treef53e6b1f69c69c858dd5601b4234660bf54ecb91 /gtk/gtktextdisplay.c
parent9e203417752584b923cf5baec8940836ff2c0bcb (diff)
downloadgtk+-001697a22a6e094ca37f4f6c230161b08dff5c20.tar.gz
Move the get_cursor_color in GtkStyleContext
Move the private get_cursor_color method belongs to StyleContext. Change the api so that retrieving both primary and secondary color is possible. I left the method private for now, though it should probably be public as all the other getters.
Diffstat (limited to 'gtk/gtktextdisplay.c')
-rw-r--r--gtk/gtktextdisplay.c7
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;