summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2018-01-08 14:21:29 +0000
committerTim-Philipp Müller <tim@centricular.com>2018-01-08 14:21:29 +0000
commitc4be7eca5d87babb941843e677e237b305d7e9f2 (patch)
treef9e09639fbf449fda97a0907430c3bb7a2894100
parentb25413fb1c3e2e442bfe8d4627e9cf7a9d313735 (diff)
examples: playback: don't use deprecated font button API
playback-test.c:2587:3: error: "gtk_font_button_get_font_name" is deprecated
-rw-r--r--tests/examples/playback/playback-test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/examples/playback/playback-test.c b/tests/examples/playback/playback-test.c
index 08e83ffc9..e497597a8 100644
--- a/tests/examples/playback/playback-test.c
+++ b/tests/examples/playback/playback-test.c
@@ -2582,10 +2582,11 @@ subtitle_encoding_activate_cb (GtkEntry * entry, PlaybackApp * app)
static void
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_free (text);
}
static void