[gtk+] cell renderer progress: Avoid warnings



commit 9f75c5445f1292d9d1be440d6af5b25e6c78ce3e
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Nov 19 23:04:38 2015 -0500

    cell renderer progress: Avoid warnings
    
    Use the right state when calling gtk_style_context_get_padding,
    to avoid warnings.

 gtk/gtkcellrendererprogress.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcellrendererprogress.c b/gtk/gtkcellrendererprogress.c
index 55e2d0c..260ed2d 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]