From eebe36dcdd8343b38c4b8d0327fd09413981a7dd Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 21 Jun 2016 14:11:57 +0100 Subject: [PATCH] p2v: Gtk 3 workaround for RHEL 7. New enough to complain about gtk_widget_modify_font, not new enough to have gtk_style_context. Fixes commit ca6fea7616f89775180ab686133052eca18f0e00. (cherry picked from commit c87eab35c0b206306f98a2a267e299be32a9e5f2) --- p2v/gui.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/p2v/gui.c b/p2v/gui.c index 764b0f8..7414037 100644 --- a/p2v/gui.c +++ b/p2v/gui.c @@ -1458,7 +1458,11 @@ create_running_dialog (void) #else PangoFontDescription *font; font = pango_font_description_from_string ("Monospace 11"); +#if GTK_CHECK_VERSION(3,0,0) /* gtk >= 3 */ + gtk_widget_override_font (v2v_output, font); +#else gtk_widget_modify_font (v2v_output, font); +#endif pango_font_description_free (font); #endif -- 1.8.3.1