[gtk+] expander: Use the right state when querying style properties
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] expander: Use the right state when querying style properties
- Date: Wed, 18 Nov 2015 02:04:34 +0000 (UTC)
commit 7085595c08fe38c1520e5a3e7f5d2adb7afa2b23
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Nov 17 20:48:50 2015 -0500
expander: Use the right state when querying style properties
Failure to do so causes warnings.
gtk/gtkexpander.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkexpander.c b/gtk/gtkexpander.c
index 61aeab8..c75aafd 100644
--- a/gtk/gtkexpander.c
+++ b/gtk/gtkexpander.c
@@ -578,7 +578,7 @@ get_padding_and_border (GtkWidget *widget,
GtkBorder tmp;
context = gtk_widget_get_style_context (widget);
- state = gtk_widget_get_state_flags (widget);
+ state = gtk_style_context_get_state (context);
gtk_style_context_get_padding (context, state, border);
gtk_style_context_get_border (context, state, &tmp);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]