forked from AuroraMiddleware/gtk
cell renderer progress: Avoid warnings
Use the right state when calling gtk_style_context_get_padding, to avoid warnings.
This commit is contained in:
parent
9202bc244e
commit
9f75c5445f
@ -577,7 +577,7 @@ gtk_cell_renderer_progress_render (GtkCellRenderer *cell,
|
||||
gtk_render_background (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;
|
||||
y += padding.top;
|
||||
|
Loading…
Reference in New Issue
Block a user