diff options
author | Wolfgang Ulbrich <[email protected]> | 2015-11-29 19:13:51 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2015-12-01 20:13:50 +0100 |
commit | e2624dc7ea05cb8a91f71c6ae13495cc51a24567 (patch) | |
tree | 97d00ef5456ce760f0443828a71570143746166d | |
parent | b7d7127bfa1b1c2e8d10467087556298cdc77102 (diff) | |
download | mate-system-monitor-e2624dc7ea05cb8a91f71c6ae13495cc51a24567.tar.bz2 mate-system-monitor-e2624dc7ea05cb8a91f71c6ae13495cc51a24567.tar.xz |
GTK3: don't use deprecated gtk_style_context_get_font
inspired from:
https://git.gnome.org/browse/gnome-system-monitor/commit/?id=a2d7fc1
-rw-r--r-- | src/load-graph.cpp | 2 |
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 |