summaryrefslogtreecommitdiff
path: root/gtk/gtktextattributes.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/gtktextattributes.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/gtktextattributes.c')
-rw-r--r--gtk/gtktextattributes.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/gtktextattributes.c b/gtk/gtktextattributes.c
index 67c3db392a..8aca3b8c9f 100644
--- a/gtk/gtktextattributes.c
+++ b/gtk/gtktextattributes.c
@@ -279,11 +279,19 @@ _gtk_text_attributes_fill_from_tags (GtkTextAttributes *dest,
{
gdk_rgba_free (dest->pg_bg_rgba);
dest->pg_bg_rgba = NULL;
+ }
+ if (dest->pg_bg_color)
+ {
+ gdk_color_free (dest->pg_bg_color);
+ dest->pg_bg_color = NULL;
}
if (vals->pg_bg_rgba)
dest->pg_bg_rgba = gdk_rgba_copy (vals->pg_bg_rgba);
+
+ if (vals->pg_bg_color)
+ dest->pg_bg_color = gdk_color_copy (vals->pg_bg_color);
}
if (vals->font)