[gimp/gtk3-port: 295/336] fgbgvew: Pass correct state to GtkStyleContext api
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 295/336] fgbgvew: Pass correct state to GtkStyleContext api
- Date: Fri, 4 May 2018 10:13:10 +0000 (UTC)
commit 5e238761cbcf32015a9b449c9a8bf1cd41c1a4e8
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]