cell renderer progress: Avoid warnings

Use the right state when calling gtk_style_context_get_padding,
to avoid warnings.
This commit is contained in:
Matthias Clasen 2015-11-19 23:04:38 -05:00
parent 9202bc244e
commit 9f75c5445f

View File

@ -577,7 +577,7 @@ gtk_cell_renderer_progress_render (GtkCellRenderer *cell,
gtk_render_background (context, cr, x, y, w, h); gtk_render_background (context, cr, x, y, w, h);
gtk_render_frame (context, cr, x, y, w, h); gtk_render_frame (context, cr, x, y, w, h);
gtk_style_context_get_padding (context, GTK_STATE_FLAG_NORMAL, &padding); gtk_style_context_get_padding (context, gtk_style_context_get_state (context), &padding);
x += padding.left; x += padding.left;
y += padding.top; y += padding.top;