diff options
-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); } |