From b42a4e227602a7b0f8c088cac8fa9d75d51d27d6 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 6 Nov 2012 20:51:29 +0100 Subject: 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 --- gtk/gtkgradient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk/gtkgradient.c') 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); } -- cgit v1.2.1