[gnome-builder] minimap: ensure color is hex style
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] minimap: ensure color is hex style
- Date: Sat, 25 Apr 2015 06:50:46 +0000 (UTC)
commit b329b9bf1903172f0573b9af8aacf3541d18bb46
Author: Christian Hergert <christian hergert me>
Date: Fri Apr 24 23:46:14 2015 -0700
minimap: ensure color is hex style
libide/ide-source-map.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libide/ide-source-map.c b/libide/ide-source-map.c
index 773d9ac..37c046e 100644
--- a/libide/ide-source-map.c
+++ b/libide/ide-source-map.c
@@ -99,7 +99,7 @@ ide_source_map_rebuild_css (IdeSourceMap *self)
"background", &background,
NULL);
- if (background != NULL)
+ if ((background != NULL) && *background == '#')
{
gchar *css;
@@ -108,7 +108,7 @@ ide_source_map_rebuild_css (IdeSourceMap *self)
" opacity: 0.75;"
" border-top: 1px solid shade(%s,0.9);"
" border-bottom: 1px solid shade(%s,0.9);"
- "}\n",
+ " }\n",
background, background, background);
gtk_css_provider_load_from_data (self->box_css_provider, css, -1, NULL);
g_free (css);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]