[gtk+/wip/cssvalue: 135/141] cssprovider: Add an empty line when printing
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/cssvalue: 135/141] cssprovider: Add an empty line when printing
- Date: Sat, 7 Apr 2012 08:56:11 +0000 (UTC)
commit f22fcdd1cc5142cf18cb869be7813e5ea12f5228
Author: Benjamin Otte <otte redhat com>
Date: Thu Apr 5 22:28:21 2012 +0200
cssprovider: Add an empty line when printing
... between the @define-color statements and the rules.
gtk/gtkcssprovider.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index 361564c..c5c1684 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -2922,7 +2922,7 @@ gtk_css_provider_to_string (GtkCssProvider *provider)
for (i = 0; i < priv->rulesets->len; i++)
{
- if (i > 0)
+ if (str->len != 0)
g_string_append (str, "\n");
gtk_css_ruleset_print (&g_array_index (priv->rulesets, GtkCssRuleset, i), str);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]