From 2182fe7d9d6246e7acfe4e9ef0ca26c4a6893be6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 22 Nov 2015 11:43:39 +0100 Subject: Don't pass widget state flags to GtkStyleContext API --- gtk/gtkfilechooserwidget.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gtk/gtkfilechooserwidget.c') diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index b10dd2e68f..57d9d8e2f1 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -6127,13 +6127,11 @@ find_good_size_from_style (GtkWidget *widget, gint *height) { GtkStyleContext *context; - GtkStateFlags state; double font_size; GdkScreen *screen; double resolution; context = gtk_widget_get_style_context (widget); - state = gtk_widget_get_state_flags (widget); screen = gtk_widget_get_screen (widget); if (screen) @@ -6145,7 +6143,10 @@ find_good_size_from_style (GtkWidget *widget, else resolution = 96.0; /* wheeee */ - gtk_style_context_get (context, state, "font-size", &font_size, NULL); + gtk_style_context_get (context, + gtk_style_context_get_state (context), + "font-size", &font_size, + NULL); font_size = font_size * resolution / 72.0 + 0.5; *width = font_size * NUM_CHARS; -- cgit v1.2.1