summaryrefslogtreecommitdiff
path: root/gtk/gtkcssstylechange.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-10-12 11:46:25 +0200
committerTimm Bäder <mail@baedert.org>2017-10-12 15:42:03 +0200
commit2c9bbb9a7105a85d133b02e8e2a12b03f937d4fb (patch)
tree38792ec54a1276e3f1fd8a2e19120544258aac97 /gtk/gtkcssstylechange.c
parenta6904ba2cc681fba204304c13d9451f428c7649c (diff)
downloadgtk+-2c9bbb9a7105a85d133b02e8e2a12b03f937d4fb.tar.gz
GtkCssStyleChange: Only print values that really changed
Diffstat (limited to 'gtk/gtkcssstylechange.c')
-rw-r--r--gtk/gtkcssstylechange.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkcssstylechange.c b/gtk/gtkcssstylechange.c
index 00a6802144..e538a82d3f 100644
--- a/gtk/gtkcssstylechange.c
+++ b/gtk/gtkcssstylechange.c
@@ -126,6 +126,10 @@ gtk_css_style_change_print (GtkCssStyleChange *change,
GtkCssValue *value;
const char *name;
+ if (_gtk_css_value_equal (gtk_css_style_get_value (change->old_style, i),
+ gtk_css_style_get_value (change->new_style, i)))
+ continue;
+
prop = _gtk_css_style_property_lookup_by_id (i);
name = _gtk_style_property_get_name (GTK_STYLE_PROPERTY (prop));