summaryrefslogtreecommitdiff
path: root/gtk/gtkcssstylechange.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-07-22 09:22:56 +0200
committerTimm Bäder <mail@baedert.org>2017-07-22 19:36:05 +0200
commit3b44a88ddb9143436336d247847128bcec339c70 (patch)
tree85e108414a813c7be8d3575ddcaa17ff3473cfd1 /gtk/gtkcssstylechange.c
parentfe1a953e9d73fe3c98dc855751aa6e316c223f44 (diff)
downloadgtk+-3b44a88ddb9143436336d247847128bcec339c70.tar.gz
cssstylechange: Fix change printing
Only print the old value once, above the new one.
Diffstat (limited to 'gtk/gtkcssstylechange.c')
-rw-r--r--gtk/gtkcssstylechange.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/gtkcssstylechange.c b/gtk/gtkcssstylechange.c
index 400dfe8418..00a6802144 100644
--- a/gtk/gtkcssstylechange.c
+++ b/gtk/gtkcssstylechange.c
@@ -129,10 +129,8 @@ gtk_css_style_change_print (GtkCssStyleChange *change,
prop = _gtk_css_style_property_lookup_by_id (i);
name = _gtk_style_property_get_name (GTK_STYLE_PROPERTY (prop));
- value = gtk_css_style_get_value (old, i);
- _gtk_css_value_print (value, string);
-
g_string_append_printf (string, "%s: ", name);
+ value = gtk_css_style_get_value (old, i);
_gtk_css_value_print (value, string);
g_string_append (string, "\n");