[gtk+/gtk-3-2] Avoid shadowing a variable



commit 18a366a2060cba8d16d6db51c12f1754cbeda28c
Author: Paolo Borelli <pborelli gnome org>
Date:   Tue Nov 29 21:14:24 2011 +0100

    Avoid shadowing a variable
    
    Move bg_color variable to an inner scope.

 gtk/gtklabel.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 00422a5..f4375d9 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -4116,8 +4116,6 @@ gtk_label_draw (GtkWidget *widget,
 
   if (priv->text && (*priv->text != '\0'))
     {
-      GdkRGBA bg_color, fg_color;
-
       get_layout_location (label, &x, &y);
 
       context = gtk_widget_get_style_context (widget);
@@ -4137,6 +4135,7 @@ gtk_label_draw (GtkWidget *widget,
         {
           gint range[2];
           cairo_region_t *clip;
+          GdkRGBA bg_color, fg_color;
 
           range[0] = info->selection_anchor;
           range[1] = info->selection_end;



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