diff options
author | raveit65 <[email protected]> | 2016-07-29 17:19:02 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2016-07-30 13:47:30 +0200 |
commit | 75263e708b69711eafec10ede52a31edbb4e2450 (patch) | |
tree | 027efaaff785edeeadba467e463dc10440373b21 | |
parent | 46c3867de5bcdb6abd83724fb6b4654bad21ef75 (diff) | |
download | pluma-75263e708b69711eafec10ede52a31edbb4e2450.tar.bz2 pluma-75263e708b69711eafec10ede52a31edbb4e2450.tar.xz |
GTK+-3: do not use deprecated gtk_widget_modify_font
-rw-r--r-- | pluma/pluma-view.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pluma/pluma-view.c b/pluma/pluma-view.c index bc244137..e7d34ebe 100644 --- a/pluma/pluma-view.c +++ b/pluma/pluma-view.c @@ -691,7 +691,11 @@ pluma_view_set_font (PlumaView *view, g_return_if_fail (font_desc != NULL); +#if GTK_CHECK_VERSION (3, 0, 0) + gtk_widget_override_font (GTK_WIDGET (view), font_desc); +#else gtk_widget_modify_font (GTK_WIDGET (view), font_desc); +#endif pango_font_description_free (font_desc); } |