examples: playback: don't use deprecated font button API

playback-test.c:2587:3: error: "gtk_font_button_get_font_name" is deprecated
This commit is contained in:
Tim-Philipp Müller 2018-01-08 14:21:29 +00:00
parent b25413fb1c
commit c4be7eca5d

View File

@ -2582,10 +2582,11 @@ subtitle_encoding_activate_cb (GtkEntry * entry, PlaybackApp * app)
static void static void
subtitle_fontdesc_cb (GtkFontButton * button, PlaybackApp * app) subtitle_fontdesc_cb (GtkFontButton * button, PlaybackApp * app)
{ {
const gchar *text; gchar *text;
text = gtk_font_button_get_font_name (button); text = gtk_font_chooser_get_font (GTK_FONT_CHOOSER (button));
g_object_set (app->pipeline, "subtitle-font-desc", text, NULL); g_object_set (app->pipeline, "subtitle-font-desc", text, NULL);
g_free (text);
} }
static void static void