From d125a70db28b8f37543ef93469f4736859afb53b Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Fri, 8 Jan 2016 21:07:15 +0100 Subject: Gtk3 eel-gtk-extensions: do not use gtk_widget_modify_font taken from: https://git.gnome.org/browse/nautilus/commit/?h=gnome-3-0&id=b5302eb --- eel/eel-gtk-extensions.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'eel') diff --git a/eel/eel-gtk-extensions.c b/eel/eel-gtk-extensions.c index b86b2b88..4e1bbeca 100644 --- a/eel/eel-gtk-extensions.c +++ b/eel/eel-gtk-extensions.c @@ -406,7 +406,11 @@ eel_gtk_label_make_bold (GtkLabel *label) * theme or user prefs, since the font desc only has the * weight flag turned on. */ - gtk_widget_modify_font (GTK_WIDGET (label), font_desc); +#if GTK_CHECK_VERSION(3,0,0) + gtk_widget_override_font (GTK_WIDGET (label), font_desc); +#else + gtk_widget_modify_font (GTK_WIDGET (label), font_desc); +#endif pango_font_description_free (font_desc); } -- cgit v1.2.1