[gtk+/gtk-3-6] gradient: Add color stops to the right gradient



commit 828fcdac2c5b02f3e413c88b28b7f78666a699db
Author: Benjamin Otte <otte redhat com>
Date:   Tue Nov 6 20:51:29 2012 +0100

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkgradient.c b/gtk/gtkgradient.c
index d6d7132..8c779d8 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);
     }
 



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