[gtksourceview/wip/minimap] map: bike shed about CSS
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/minimap] map: bike shed about CSS
- Date: Thu, 7 May 2015 19:17:30 +0000 (UTC)
commit 56900a92860820ac49c9a97a477695f6e31e2b45
Author: Sébastien Wilmet <swilmet gnome org>
Date: Thu May 7 21:14:21 2015 +0200
map: bike shed about CSS
It can be useful to see the result of g_strdup_printf() in gdb, so
format correctly the CSS code as any other code. Saving a few bytes is
really not important here, IMO. Being able to debug the code
conveniently is much more important.
gtksourceview/gtksourcemap.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtksourceview/gtksourcemap.c b/gtksourceview/gtksourcemap.c
index a60567d..43a2570 100644
--- a/gtksourceview/gtksourcemap.c
+++ b/gtksourceview/gtksourcemap.c
@@ -137,11 +137,11 @@ gtk_source_map_rebuild_css (GtkSourceMap *map)
{
gchar *css;
- css = g_strdup_printf ("GtkSourceMap GtkEventBox {"
- "background-color: %s;"
- "opacity: 0.75;"
- "border-top: 1px solid shade(%s,0.9);"
- "border-bottom: 1px solid shade(%s,0.9);"
+ css = g_strdup_printf ("GtkSourceMap GtkEventBox {\n"
+ "\tbackground-color: %s;\n"
+ "\topacity: 0.75;\n"
+ "\tborder-top: 1px solid shade(%s,0.9);\n"
+ "\tborder-bottom: 1px solid shade(%s,0.9);\n"
"}\n",
background,
background,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]