summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-05-31 23:59:33 +0200
committerraveit65 <[email protected]>2016-06-15 13:29:17 +0200
commitde50df2018498f9eefdf08efd22e6c9e371a2ea1 (patch)
tree51d85fee7e9711a088a808cb0e4902efe4b38f82 /src
parenta6267ed3da8b579247d3a786c91c3da3ed729c6b (diff)
downloadcaja-de50df2018498f9eefdf08efd22e6c9e371a2ea1.tar.bz2
caja-de50df2018498f9eefdf08efd22e6c9e371a2ea1.tar.xz
GTK+3: do not use deprecated gtk_widget_modify_font
Diffstat (limited to 'src')
-rw-r--r--src/caja-sidebar-title.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/caja-sidebar-title.c b/src/caja-sidebar-title.c
index 623dc1e2..1cd8e14c 100644
--- a/src/caja-sidebar-title.c
+++ b/src/caja-sidebar-title.c
@@ -604,7 +604,11 @@ update_title_font (CajaSidebarTitle *sidebar_title)
pango_font_description_set_size (title_font, max_fit_font_size * PANGO_SCALE);
pango_font_description_set_weight (title_font, PANGO_WEIGHT_BOLD);
+#if GTK_CHECK_VERSION(3,0,0)
+ gtk_widget_override_font (sidebar_title->details->title_label, title_font);
+#else
gtk_widget_modify_font (sidebar_title->details->title_label, title_font);
+#endif
pango_font_description_free (title_font);
}