summaryrefslogtreecommitdiff
path: root/gtk/gtkcellrendererprogress.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-11-19 23:04:38 -0500
committerMatthias Clasen <mclasen@redhat.com>2015-11-20 00:13:20 -0500
commit9f75c5445f1292d9d1be440d6af5b25e6c78ce3e (patch)
tree63ceb0a07a0f26e709cdf02f7d933ad22f4ad2e4 /gtk/gtkcellrendererprogress.c
parent9202bc244e9a392783755e698c1b5c02228c6f26 (diff)
downloadgtk+-9f75c5445f1292d9d1be440d6af5b25e6c78ce3e.tar.gz
cell renderer progress: Avoid warnings
Use the right state when calling gtk_style_context_get_padding, to avoid warnings.
Diffstat (limited to 'gtk/gtkcellrendererprogress.c')
-rw-r--r--gtk/gtkcellrendererprogress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcellrendererprogress.c b/gtk/gtkcellrendererprogress.c
index 55e2d0c4a5..260ed2d8fe 100644
--- a/gtk/gtkcellrendererprogress.c
+++ b/gtk/gtkcellrendererprogress.c
@@ -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;