diff options
author | Matthias Clasen <mclasen@redhat.com> | 2016-05-03 22:15:17 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-05-03 22:15:17 -0400 |
commit | 449fd4a350da32175961934617a4ecbdc2e04e16 (patch) | |
tree | f389c02f35a494686852129bc45f14cb45977ca3 /gtk/gtkcsswidgetnode.c | |
parent | 944f9d4f287d69b109aa50474aacc00d67b08574 (diff) | |
download | gtk+-449fd4a350da32175961934617a4ecbdc2e04e16.tar.gz |
Use g_set_object in one more place
Diffstat (limited to 'gtk/gtkcsswidgetnode.c')
-rw-r--r-- | gtk/gtkcsswidgetnode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkcsswidgetnode.c b/gtk/gtkcsswidgetnode.c index 294734e977..3cce56dc87 100644 --- a/gtk/gtkcsswidgetnode.c +++ b/gtk/gtkcsswidgetnode.c @@ -137,8 +137,7 @@ gtk_css_widget_node_validate (GtkCssNode *node) gtk_style_context_validate (context, &change); else _gtk_widget_style_context_invalidated (widget_node->widget); - g_object_unref (widget_node->last_updated_style); - widget_node->last_updated_style = g_object_ref (style); + g_set_object (&widget_node->last_updated_style, style); } gtk_css_style_change_finish (&change); } |