[atomix/wip/kill-libxml] Fixed RGBA parsing issue



commit c7a06673d9d1eaa2030cf18b3225862e342a51c9
Author: Robert Roth <robert roth off gmail com>
Date:   Mon Mar 30 14:01:27 2015 +0300

    Fixed RGBA parsing issue

 src/theme-manager.c |    2 +-
 src/theme-private.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/theme-manager.c b/src/theme-manager.c
index b787220..8525467 100644
--- a/src/theme-manager.c
+++ b/src/theme-manager.c
@@ -91,7 +91,7 @@ theme_parser_start_element (GMarkupParseContext  *context,
   } else if (!g_strcmp0 (element_name, "bgcolor")) {
     /* handle background color */
     prop_value = get_attribute_value ("color", attribute_names, attribute_values);
-    gdk_rgba_parse (prop_value, &(priv->bg_color));
+    gdk_rgba_parse (&(priv->bg_color), prop_value);
   } else if (!g_strcmp0 (element_name, "bgcolor_rgb")) {
     /* handle rgb color node */
     prop_value = get_attribute_value ("red", attribute_names, attribute_values);
diff --git a/src/theme-private.h b/src/theme-private.h
index f6bd20c..7859353 100644
--- a/src/theme-private.h
+++ b/src/theme-private.h
@@ -42,7 +42,7 @@ struct _ThemePrivate
   gint tile_height;            /* height of each tile */
   gint animstep;               /* number of pixels to move a atom in one 
                                   animation step */
-  GdkColor bg_color;           /* background color */
+  GdkRGBA bg_color;            /* background color */
 
   GData *images;               /* key/data list for all the images */
 };


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