Made open dialog use default project dir
git-svn-id: svn://svn.savannah.nongnu.org/lash/trunk@31 1de19dc7-4e3f-0410-a61d-eddf686bf0b7
This commit is contained in:
parent
4cbef27535
commit
1457153b30
|
@ -331,6 +331,11 @@ open_cb(GtkButton * button, void *data)
|
|||
GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER,
|
||||
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
|
||||
GTK_STOCK_OPEN, GTK_RESPONSE_OK, NULL);
|
||||
|
||||
char default_dir[256];
|
||||
snprintf(default_dir, 256, "%s/%s", getenv("HOME"), DEFAULT_PROJECT_DIR);
|
||||
gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(open_dialog),
|
||||
default_dir);
|
||||
|
||||
response = gtk_dialog_run(GTK_DIALOG(open_dialog));
|
||||
|
||||
|
|
Loading…
Reference in New Issue