[gtk+] Avoid shadowing a variable
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Avoid shadowing a variable
- Date: Tue, 29 Nov 2011 20:26:14 +0000 (UTC)
commit 58d247d7ae71bd2c830f02491fa163d795e23c0a
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 600b6ac..f763521 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]