summaryrefslogtreecommitdiff
path: root/gtk/gtktextdisplay.c
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2011-02-14 15:27:42 +0900
committerMatthias Clasen <mclasen@redhat.com>2011-05-06 17:05:34 -0400
commitcefb95011000ad12d9f2cc71c6b9175e1d9746dd (patch)
treec867549632261393fa5e41aee61e127d3c09ea82 /gtk/gtktextdisplay.c
parent2b2d7aa30509e1b74f00e2b1809d7a646455dd3b (diff)
downloadgtk+-cefb95011000ad12d9f2cc71c6b9175e1d9746dd.tar.gz
Added internal GdkRGBA support for GtkTextTag::paragraph-background-rgba
Added the remaining implementation bits for rendering paragraph backgrounds with rgba values and updated the test case.
Diffstat (limited to 'gtk/gtktextdisplay.c')
-rw-r--r--gtk/gtktextdisplay.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtktextdisplay.c b/gtk/gtktextdisplay.c
index dea9ae4264..6c2eddf9a7 100644
--- a/gtk/gtktextdisplay.c
+++ b/gtk/gtktextdisplay.c
@@ -649,13 +649,13 @@ render_para (GtkTextRenderer *text_renderer,
}
else
{
- if (line_display->pg_bg_color)
+ if (line_display->pg_bg_rgba)
{
cairo_t *cr = text_renderer->cr;
cairo_save (cr);
-
- gdk_cairo_set_source_color (cr, line_display->pg_bg_color);
+
+ gdk_cairo_set_source_rgba (text_renderer->cr, line_display->pg_bg_rgba);
cairo_rectangle (cr,
line_display->left_margin, selection_y,
screen_width, selection_height);