[geany/geany-plugins] dd2658: projectorganizer: set file open dialog folder to base_path when adding external directory
Jiří Techet
git-noreply at xxxxx
Sun Mar 29 19:36:51 UTC 2015
Branch: refs/heads/master
Author: Jiří Techet <techet at gmail.com>
Committer: Jiří Techet <techet at gmail.com>
Date: Sun, 29 Mar 2015 19:36:51 UTC
Commit: dd2658ca799f19d5df0279ac01faf928c940ee85
https://github.com/geany/geany-plugins/commit/dd2658ca799f19d5df0279ac01faf928c940ee85
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).
More information about the Plugins-Commits
mailing list