mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
examples: make play button in playback test have focus after startup
So you can just press Enter to start playback.
This commit is contained in:
parent
492341db77
commit
d155b83d03
1 changed files with 3 additions and 0 deletions
|
@ -3218,6 +3218,9 @@ create_ui (PlaybackApp * app)
|
|||
|
||||
g_signal_connect (G_OBJECT (app->window), "delete-event",
|
||||
G_CALLBACK (delete_event_cb), app);
|
||||
|
||||
gtk_widget_set_can_default (play_button, TRUE);
|
||||
gtk_widget_grab_default (play_button);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue