Branch: refs/heads/master Author: LarsDW223 lars_paulsen@web.de Committer: LarsDW223 lars_paulsen@web.de Date: Mon, 26 Feb 2018 20:52:54 UTC Commit: 93388a803220ad972c91eeaa51a47e775f533fa0 https://github.com/geany/geany-plugins/commit/93388a803220ad972c91eeaa51a47e...
Log Message: ----------- workbench: import base path on "Add project..."
Import the base path on adding a project by calling "wb_project_load()". This prevents the user from having to close and re-open the workbench once to have the base path imported. Fixes #709.
Modified Paths: -------------- workbench/src/wb_project.c workbench/src/wb_project.h workbench/src/workbench.c
Modified: workbench/src/wb_project.c 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -1286,7 +1286,7 @@ gboolean wb_project_save(WB_PROJECT *prj, GError **error) * @return TRUE on success, FALSE otherwise * **/ -gboolean wb_project_load(WB_PROJECT *prj, gchar *filename, GError **error) +gboolean wb_project_load(WB_PROJECT *prj, const gchar *filename, GError **error) { GKeyFile *kf; guint index;
Modified: workbench/src/wb_project.h 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -63,7 +63,7 @@ gchar *wb_project_get_bookmark_at_index (WB_PROJECT *prj, guint index); guint wb_project_get_bookmarks_count(WB_PROJECT *prj);
gboolean wb_project_save(WB_PROJECT *prj, GError **error); -gboolean wb_project_load(WB_PROJECT *prj, gchar *filename, GError **error); +gboolean wb_project_load(WB_PROJECT *prj, const gchar *filename, GError **error);
gchar *wb_project_get_info (WB_PROJECT *prj);
Modified: workbench/src/workbench.c 3 lines changed, 3 insertions(+), 0 deletions(-) =================================================================== @@ -398,6 +398,9 @@ gboolean workbench_add_project(WORKBENCH *wb, const gchar *filename) } g_ptr_array_add (wb->projects, entry);
+ /* Load project to import base path. */ + wb_project_load(project, filename, NULL); + wb->modified = TRUE; return TRUE; }
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org