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



commit d90bb5a2e3eae6cb504332daabd5f2b2a5fb7a1b
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]