mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 14:30:15 +00:00
Avoid shadowing a variable
Move bg_color variable to an inner scope.
This commit is contained in:
parent
7fb00c919e
commit
58d247d7ae
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user