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:
Tim-Philipp Müller 2012-06-14 23:08:54 +01:00
parent 492341db77
commit d155b83d03

View file

@ -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