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



commit 51ca9c099415108de72e7fb35a0f0498dcafd2b0
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]