From 3fd744b81083429fd1d43e2c461af6337fdc8e29 Mon Sep 17 00:00:00 2001 From: riccardom Date: Fri, 8 May 2009 19:51:15 +0000 Subject: [PATCH] Set the current dir for the gtk file chooser to user home dir instead of the current path. --- desmume/src/gtk/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desmume/src/gtk/main.cpp b/desmume/src/gtk/main.cpp index 1b2dbf754..ef003d9fb 100644 --- a/desmume/src/gtk/main.cpp +++ b/desmume/src/gtk/main.cpp @@ -829,6 +829,8 @@ static void OpenNdsDialog() gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(pFileSelection), pFilter_dsgba); gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(pFileSelection), pFilter_any); + gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(pFileSelection), g_get_home_dir()); + /* Showing the window */ switch(gtk_dialog_run(GTK_DIALOG(pFileSelection))) { case GTK_RESPONSE_OK: