[gtk+] range: Use right state when querying margin



commit 68ed166c60f796328c2be40a7f3df9db23f708c2
Author: Benjamin Otte <otte redhat com>
Date:   Fri Nov 6 18:53:46 2015 +0100

    range: Use right state when querying margin

 gtk/gtkrange.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index 0ffbfbc..5609b34 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -2004,7 +2004,7 @@ gtk_range_draw (GtkWidget *widget,
         }
 
       gtk_style_context_save_to_node (context, priv->trough_node);
-      gtk_style_context_get_margin (context, widget_state, &margin);
+      gtk_style_context_get_margin (context, gtk_style_context_get_state (context), &margin);
 
       x += margin.left;
       y += margin.top;
@@ -2159,7 +2159,7 @@ gtk_range_draw (GtkWidget *widget,
       cairo_clip (cr);
 
       gtk_style_context_save_to_node (context, priv->slider_node);
-      gtk_style_context_get_margin (context, widget_state, &margin);
+      gtk_style_context_get_margin (context, gtk_style_context_get_state (context), &margin);
 
       gtk_render_slider (context, cr,
                          priv->slider.x + margin.left,


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