From 1518fe0a8f0a973f013e21c185f38111d69d6ac7 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 8 Oct 2016 05:07:23 +0200 Subject: API: stylecontext: Remove state argument from getters The argument must always be the current state. --- gtk/gtktexthandle.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'gtk/gtktexthandle.c') diff --git a/gtk/gtktexthandle.c b/gtk/gtktexthandle.c index 4e9e359a5d..19e89f1d1a 100644 --- a/gtk/gtktexthandle.c +++ b/gtk/gtktexthandle.c @@ -88,15 +88,9 @@ _gtk_text_handle_get_size (GtkTextHandle *handle, context = gtk_widget_get_style_context (widget); gtk_style_context_get (context, - gtk_style_context_get_state (context), - "min-width", - width, NULL); - - - gtk_style_context_get (context, - gtk_style_context_get_state (context), - "min-height", - height, NULL); + "min-width", width, + "min-height", height, + NULL); } static void -- cgit v1.2.1