summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Borelli <pborelli@gnome.org>2011-11-29 21:14:24 +0100
committerPaolo Borelli <pborelli@gnome.org>2011-11-29 21:28:30 +0100
commit58d247d7ae71bd2c830f02491fa163d795e23c0a (patch)
tree950d7ba11aa11801afd4e42d2460928cb406bca2
parent7fb00c919e4f415019ed2a2f5713a868e9968d04 (diff)
downloadgtk+-58d247d7ae71bd2c830f02491fa163d795e23c0a.tar.gz
Avoid shadowing a variable
Move bg_color variable to an inner scope.
-rw-r--r--gtk/gtklabel.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 600b6ac1a3..f7635213d3 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -4117,8 +4117,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);
@@ -4138,6 +4136,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;