mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-30 15:31:34 +00:00
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_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;
|
||||||
|
Loading…
Reference in New Issue
Block a user