From 7f4ac7cc08765cd139d6c3ac1f3d501598eb6324 Mon Sep 17 00:00:00 2001 From: Ken VanDine Date: Thu, 11 Jul 2013 15:37:33 -0400 Subject: Fixed deprecations --- src/ido-detail-label.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/ido-detail-label.c') diff --git a/src/ido-detail-label.c b/src/ido-detail-label.c index 780a2dd..74af602 100644 --- a/src/ido-detail-label.c +++ b/src/ido-detail-label.c @@ -139,9 +139,10 @@ gtk_widget_get_font_metrics (GtkWidget *widget, PangoContext *context) { const PangoFontDescription *font; - - font = gtk_style_context_get_font (gtk_widget_get_style_context (widget), - gtk_widget_get_state_flags (widget)); + GtkStyleContext *style; + style = gtk_widget_get_style_context (GTK_WIDGET (widget)); + gtk_style_context_get (style, GTK_STATE_FLAG_NORMAL, + "font", &font, NULL); return pango_context_get_metrics (context, font, -- cgit v1.2.3