summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/load-graph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/load-graph.cpp b/src/load-graph.cpp
index c621f35..fa933d3 100644
--- a/src/load-graph.cpp
+++ b/src/load-graph.cpp
@@ -115,7 +115,7 @@ static void draw_background(LoadGraph *graph) {
layout = pango_cairo_create_layout (cr);
#if GTK_CHECK_VERSION(3,0,0)
- font_desc = pango_font_description_copy (gtk_style_context_get_font (context, GTK_STATE_FLAG_NORMAL));
+ gtk_style_context_get (context, GTK_STATE_FLAG_NORMAL, GTK_STYLE_PROPERTY_FONT, &font_desc, NULL);
#else
font_desc = pango_font_description_copy (style->font_desc);
#endif