spinner: Stop setting state flags on the style context for drawing

This commit is contained in:
Rui Matos 2011-12-21 23:06:39 +00:00
parent e9549a7514
commit b203ea2f93

View File

@ -202,12 +202,9 @@ gtk_spinner_draw (GtkWidget *widget,
cairo_t *cr)
{
GtkStyleContext *context;
GtkStateFlags state;
context = gtk_widget_get_style_context (widget);
state = gtk_widget_get_state_flags (widget);
gtk_style_context_set_state (context, state);
gtk_render_activity (context, cr, 0, 0,
gtk_widget_get_allocated_width (widget),
gtk_widget_get_allocated_height (widget));