mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
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:
parent
b25413fb1c
commit
c4be7eca5d
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue