Blame SOURCES/0119-p2v-Gtk-3-workaround-for-RHEL-7.patch

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