summaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-01-14 17:58:22 +0000
committerjstebbins <[email protected]>2014-01-14 17:58:22 +0000
commita84366be9e3ab17fa9a9ff6958e08a489e24b679 (patch)
tree4bb1530e79b44fa1b56d13aa9c25e108c086eb21 /gtk
parent1c0097edfa33274b8eef7eef028d6465654b4cb6 (diff)
LinGui: fix deprecated gtk_widget_modify_font
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5969 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk')
-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!