summaryrefslogtreecommitdiff
path: root/gtk/gtkrevealer.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2016-10-08 05:07:23 +0200
committerBenjamin Otte <otte@redhat.com>2016-10-16 18:18:58 +0200
commit1518fe0a8f0a973f013e21c185f38111d69d6ac7 (patch)
treef3fe2e9fcf10181b91a2d1627a086ca8fd81c485 /gtk/gtkrevealer.c
parent7ae008421aaf94d0b6968bcbf71fc3e1271181d8 (diff)
downloadgtk+-1518fe0a8f0a973f013e21c185f38111d69d6ac7.tar.gz
API: stylecontext: Remove state argument from getters
The argument must always be the current state.
Diffstat (limited to 'gtk/gtkrevealer.c')
-rw-r--r--gtk/gtkrevealer.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/gtkrevealer.c b/gtk/gtkrevealer.c
index 2e3d34fc6b..c364e142e5 100644
--- a/gtk/gtkrevealer.c
+++ b/gtk/gtkrevealer.c
@@ -125,12 +125,10 @@ gtk_revealer_get_padding (GtkRevealer *revealer,
{
GtkWidget *widget = GTK_WIDGET (revealer);
GtkStyleContext *context;
- GtkStateFlags state;
context = gtk_widget_get_style_context (widget);
- state = gtk_style_context_get_state (context);
- gtk_style_context_get_padding (context, state, padding);
+ gtk_style_context_get_padding (context, padding);
}
static void