Cosmetic: Avoid explicit state variables

Using the state of the context makes this more obviously correct.
This commit is contained in:
Matthias Clasen 2015-11-14 10:30:31 -05:00
parent bcc6df00e5
commit debb33db8c

View File

@ -4854,12 +4854,10 @@ gtk_tree_view_draw_line (GtkTreeView *tree_view,
case GTK_TREE_VIEW_FOREGROUND_LINE:
{
GtkStateFlags state;
GdkRGBA color;
state = gtk_widget_get_state_flags (GTK_WIDGET (tree_view));
cairo_set_line_width (cr, 1.0);
gtk_style_context_get_color (context, state, &color);
gtk_style_context_get_color (context, gtk_style_context_get_state (context), &color);
gdk_cairo_set_source_rgba (cr, &color);
}
break;