diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-11-19 23:04:38 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-11-20 00:13:20 -0500 |
commit | 9f75c5445f1292d9d1be440d6af5b25e6c78ce3e (patch) | |
tree | 63ceb0a07a0f26e709cdf02f7d933ad22f4ad2e4 /gtk/gtkcellrendererprogress.c | |
parent | 9202bc244e9a392783755e698c1b5c02228c6f26 (diff) | |
download | gtk+-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.c | 2 |
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; |