gui/collection: Set dialog default response

This gives users the ability to add new library paths by pressing the
"Enter" key instead of needing to click a button with their mouse.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
Anna Schumaker 2016-08-31 15:35:10 -04:00
parent ae851ab4ea
commit 00c4c8a418
2 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,5 @@
6.4.19:
- Use Enter key to accept new library paths
- Remove deleted tracks from artist playlists
- File chooser selects user's music directory
- Remove deleted tracks from artist playlists

View File

@ -35,6 +35,7 @@ void __collection_choose(GtkButton *button, gpointer data)
_("_Cancel"), GTK_RESPONSE_CANCEL,
_("_Open"), GTK_RESPONSE_ACCEPT,
NULL);
gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_ACCEPT);
gtk_file_chooser_set_filter(GTK_FILE_CHOOSER(dialog), filter);
path = g_get_user_special_dir(G_USER_DIRECTORY_MUSIC);