diff options
author | Robert Staudinger <robsta@gnome.org> | 2009-06-17 18:49:30 +0200 |
---|---|---|
committer | Robert Staudinger <robsta@gnome.org> | 2009-06-17 18:49:30 +0200 |
commit | aaa1d3fcf108f1dfbd32670507b625aaea276c5f (patch) | |
tree | f2d8669466f12af655da1f097f8f2349093df7b2 /ccss-gtk | |
parent | 375a769050d9638d340edbab17627673f2c293da (diff) |
[gtk-stylesheet] Serialize colors in #rrggbba format.
Diffstat (limited to 'ccss-gtk')
-rw-r--r-- | ccss-gtk/ccss-gtk-stylesheet.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ccss-gtk/ccss-gtk-stylesheet.c b/ccss-gtk/ccss-gtk-stylesheet.c index b13562f..419f1cb 100644 --- a/ccss-gtk/ccss-gtk-stylesheet.c +++ b/ccss-gtk/ccss-gtk-stylesheet.c @@ -226,24 +226,24 @@ accumulate_state (ccss_stylesheet_t *stylesheet, ret = ccss_style_get_string (style, "color", &color); if (ret && color) { state->flags |= TEXT_SET; - strncpy (state->text, color, 8); + strncpy (state->text, color, 7); /* '#rrggbb', omit alpha */ g_free (color), color = NULL; } ret = ccss_style_get_string (style, "background-color", &color); if (ret) { state->flags |= BG_SET; - strncpy (state->bg, color, 8); + strncpy (state->bg, color, 7); /* '#rrggbb', omit alpha */ /* FIXME: also setting "base" to the background color, let's see how this works out. */ state->flags |= BASE_SET; - strncpy (state->base, color, 8); + strncpy (state->base, color, 7); /* '#rrggbb', omit alpha */ g_free (color), color = NULL; } ret = ccss_style_get_string (style, "border-color", &color); if (ret && color) { state->flags |= FG_SET; - strncpy (state->fg, color, 8); + strncpy (state->fg, color, 7); /* '#rrggbb', omit alpha */ g_free (color), color = NULL; } |