[gtksourceview] Use GdkRGBA properties of GtkTextTag



commit 59c4e79123c55e2a492ecbff2fe42be92e702377
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat Apr 20 22:45:17 2013 +0200

    Use GdkRGBA properties of GtkTextTag
    
    When creating the PangoAttribute's, the alpha is not taken into account.

 gtksourceview/gtksourceprintcompositor.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gtksourceview/gtksourceprintcompositor.c b/gtksourceview/gtksourceprintcompositor.c
index 114f417..61df8f6 100644
--- a/gtksourceview/gtksourceprintcompositor.c
+++ b/gtksourceview/gtksourceprintcompositor.c
@@ -2314,20 +2314,20 @@ get_iter_attrs (GtkSourcePrintCompositor *compositor,
 
                if (bg_set)
                {
-                       GdkColor *color = NULL;
+                       GdkRGBA *color = NULL;
                        if (bg) pango_attribute_destroy (bg);
-                       g_object_get (tag, "background-gdk", &color, NULL);
+                       g_object_get (tag, "background-rgba", &color, NULL);
                        bg = pango_attr_background_new (color->red, color->green, color->blue);
-                       gdk_color_free (color);
+                       gdk_rgba_free (color);
                }
 
                if (fg_set)
                {
-                       GdkColor *color = NULL;
+                       GdkRGBA *color = NULL;
                        if (fg) pango_attribute_destroy (fg);
-                       g_object_get (tag, "foreground-gdk", &color, NULL);
+                       g_object_get (tag, "foreground-rgba", &color, NULL);
                        fg = pango_attr_foreground_new (color->red, color->green, color->blue);
-                       gdk_color_free (color);
+                       gdk_rgba_free (color);
                }
 
                if (style_set)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]