diff options
author | Wolfgang Ulbrich <[email protected]> | 2016-01-08 21:07:15 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2016-01-13 15:05:41 +0100 |
commit | d125a70db28b8f37543ef93469f4736859afb53b (patch) | |
tree | a9586d10ab4d49929c53bd708343bc2bf1912d3b /eel | |
parent | 1dffd0e4615ffe0ec3c2b86a61b02d735898ab90 (diff) | |
download | caja-d125a70db28b8f37543ef93469f4736859afb53b.tar.bz2 caja-d125a70db28b8f37543ef93469f4736859afb53b.tar.xz |
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
Diffstat (limited to 'eel')
-rw-r--r-- | eel/eel-gtk-extensions.c | 6 |
1 files changed, 5 insertions, 1 deletions
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); } |