[gimp/gtk3-port: 295/457] fgbgvew: Pass correct state to GtkStyleContext api



commit 499afafcec631d81151d2c1775a1559919dc8cb3
Author: Timm Bäder <mail baedert org>
Date:   Sat Jul 30 22:28:34 2016 +0200

    fgbgvew: Pass correct state to GtkStyleContext api

 app/widgets/gimpfgbgview.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimpfgbgview.c b/app/widgets/gimpfgbgview.c
index 8d0f7fe..b430688 100644
--- a/app/widgets/gimpfgbgview.c
+++ b/app/widgets/gimpfgbgview.c
@@ -165,7 +165,7 @@ gimp_fg_bg_view_draw (GtkWidget *widget,
   gtk_style_context_save (style);
   gtk_style_context_add_class (style, GTK_STYLE_CLASS_BUTTON);
 
-  gtk_style_context_get_border (style, gtk_widget_get_state_flags (widget),
+  gtk_style_context_get_border (style, gtk_style_context_get_state (style),
                                 &border);
 
   rect_w = allocation.width  * 3 / 4;


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