[gtk+] cssstylechange: Fix change printing



commit 3b44a88ddb9143436336d247847128bcec339c70
Author: Timm Bäder <mail baedert org>
Date:   Sat Jul 22 09:22:56 2017 +0200

    cssstylechange: Fix change printing
    
    Only print the old value once, above the new one.

 gtk/gtkcssstylechange.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkcssstylechange.c b/gtk/gtkcssstylechange.c
index 400dfe8..00a6802 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");
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]