summaryrefslogtreecommitdiffstats
path: root/gtk/src
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/src')
-rw-r--r--gtk/src/ghbcompat.h4
-rw-r--r--gtk/src/main.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gtk/src/ghbcompat.h b/gtk/src/ghbcompat.h
index 2c4ba99ad..b352b9d82 100644
--- a/gtk/src/ghbcompat.h
+++ b/gtk/src/ghbcompat.h
@@ -29,6 +29,10 @@ static inline gboolean gtk_widget_get_realized(GtkWidget *widget)
}
#endif
+#if !GTK_CHECK_VERSION(3, 0, 0)
+#define gtk_widget_override_font gtk_widget_modify_font
+#endif
+
#if !GTK_CHECK_VERSION(3, 10, 0)
#define gtk_image_set_from_icon_name gtk_image_set_from_stock
#define GHB_PLAY_ICON "gtk-media-play"
diff --git a/gtk/src/main.c b/gtk/src/main.c
index 51a7b658f..d57fdaf0b 100644
--- a/gtk/src/main.c
+++ b/gtk/src/main.c
@@ -1268,7 +1268,7 @@ main(int argc, char *argv[])
PangoFontDescription *font_desc;
font_desc = pango_font_description_from_string("monospace 10");
textview = GTK_TEXT_VIEW(GHB_WIDGET(ud->builder, "activity_view"));
- gtk_widget_modify_font(GTK_WIDGET(textview), font_desc);
+ gtk_widget_override_font(GTK_WIDGET(textview), font_desc);
pango_font_description_free(font_desc);
// Everything should be go-to-go. Lets rock!