summaryrefslogtreecommitdiff
path: root/gtk/gtkgradient.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-11-06 20:51:29 +0100
committerBenjamin Otte <otte@redhat.com>2012-11-06 21:29:58 +0100
commitb42a4e227602a7b0f8c088cac8fa9d75d51d27d6 (patch)
tree319cde134aa3f14d49143127ca5ed96fbf704865 /gtk/gtkgradient.c
parent5e59033eb3005bd75ad0e01ca20eeb3c36432a23 (diff)
downloadgtk+-b42a4e227602a7b0f8c088cac8fa9d75d51d27d6.tar.gz
gradient: Add color stops to the right gradient
This was causing an infinite loop happily eating up memory. https://bugzilla.gnome.org/show_bug.cgi?id=687467
Diffstat (limited to 'gtk/gtkgradient.c')
-rw-r--r--gtk/gtkgradient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkgradient.c b/gtk/gtkgradient.c
index d6d7132373..8c779d8152 100644
--- a/gtk/gtkgradient.c
+++ b/gtk/gtkgradient.c
@@ -468,7 +468,7 @@ gtk_gradient_fade (GtkGradient *gradient,
stop = &g_array_index (gradient->stops, ColorStop, i);
color = gtk_symbolic_color_new_alpha (stop->color, opacity);
- gtk_gradient_add_color_stop (gradient, stop->offset, color);
+ gtk_gradient_add_color_stop (faded, stop->offset, color);
gtk_symbolic_color_unref (color);
}