Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: Jiří Techet techet@gmail.com Date: Sun, 29 Mar 2015 19:36:51 UTC Commit: dd2658ca799f19d5df0279ac01faf928c940ee85 https://github.com/geany/geany-plugins/commit/dd2658ca799f19d5df0279ac01faf9...
Log Message: ----------- projectorganizer: set file open dialog folder to base_path when adding external directory
There's a good chance that the external directory is around (e.g. one level up). (Unfortunately plugins don't have access to the default project directory settings so we cannot use it.)
Modified Paths: -------------- projectorganizer/src/prjorg-sidebar.c
Modified: projectorganizer/src/prjorg-sidebar.c 1 lines changed, 1 insertions(+), 0 deletions(-) =================================================================== @@ -291,6 +291,7 @@ static void on_add_external(G_GNUC_UNUSED GtkMenuItem * menuitem, G_GNUC_UNUSED GTK_WINDOW(geany->main_widgets->window), GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, _("_Cancel"), GTK_RESPONSE_CANCEL, _("Add"), GTK_RESPONSE_ACCEPT, NULL); + gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(dialog), geany_data->app->project->base_path);
if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT) {
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).