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:
parent
ae851ab4ea
commit
00c4c8a418
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue