From 00c4c8a418eb3bd373877752e85e1e548ac6f5cf Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Wed, 31 Aug 2016 15:35:10 -0400 Subject: [PATCH] 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 --- CHANGELOG | 1 + gui/collection.c | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index c8eef4fa..eb66527b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 diff --git a/gui/collection.c b/gui/collection.c index dfecbed4..c1e2ca92 100644 --- a/gui/collection.c +++ b/gui/collection.c @@ -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);