diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-01-23 21:50:39 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-01-23 21:51:38 -0500 |
commit | d9fcc4c630f3668dd014c258c2deb22d61e438d0 (patch) | |
tree | 8b08e3e470f98aaa23173d19a6ab99fc4d12691d /gtk/gtkradiobutton.c | |
parent | 94c4a312c1eceb352dea1895f868f9943735e1aa (diff) | |
download | gtk+-d9fcc4c630f3668dd014c258c2deb22d61e438d0.tar.gz |
Silence new gcc warnings
gcc 4.6.0 has started to warn about set-but-unused variables.
So don't do that, then.
Diffstat (limited to 'gtk/gtkradiobutton.c')
-rw-r--r-- | gtk/gtkradiobutton.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gtk/gtkradiobutton.c b/gtk/gtkradiobutton.c index 476f37ba1e..59a77c5aba 100644 --- a/gtk/gtkradiobutton.c +++ b/gtk/gtkradiobutton.c @@ -894,7 +894,6 @@ gtk_radio_button_draw_indicator (GtkCheckButton *check_button, GtkToggleButton *toggle_button; GtkStyleContext *context; GtkStateFlags state = 0; - GdkWindow *window; gint x, y; gint indicator_size, indicator_spacing; gint focus_width; @@ -915,8 +914,6 @@ gtk_radio_button_draw_indicator (GtkCheckButton *check_button, "focus-padding", &focus_pad, NULL); - window = gtk_widget_get_window (widget); - _gtk_check_button_get_props (check_button, &indicator_size, &indicator_spacing); gtk_widget_get_allocation (widget, &allocation); @@ -926,14 +923,15 @@ gtk_radio_button_draw_indicator (GtkCheckButton *check_button, child = gtk_bin_get_child (GTK_BIN (check_button)); if (!interior_focus || !(child && gtk_widget_get_visible (child))) - x += focus_width + focus_pad; + x += focus_width + focus_pad; if (gtk_toggle_button_get_inconsistent (toggle_button)) state |= GTK_STATE_FLAG_INCONSISTENT; else if (gtk_toggle_button_get_active (toggle_button)) state |= GTK_STATE_FLAG_ACTIVE; - if (button->priv->activate_timeout || (button->priv->button_down && button->priv->in_button)) + if (button->priv->activate_timeout || + (button->priv->button_down && button->priv->in_button)) state |= GTK_STATE_FLAG_SELECTED; if (button->priv->in_button) |