[geany/geany-plugins] d77b76: Merge pull request #630 from LarsGit223/issue629

Frank Lanitz git-noreply at xxxxx
Wed Oct 18 19:52:22 UTC 2017


Branch:      refs/heads/master
Author:      Frank Lanitz <frank at frank.uvena.de>
Committer:   GitHub <noreply at github.com>
Date:        Wed, 18 Oct 2017 19:52:22 UTC
Commit:      d77b76c7970562ca2dbd494dcebef98e7b6bda40
             https://github.com/geany/geany-plugins/commit/d77b76c7970562ca2dbd494dcebef98e7b6bda40

Log Message:
-----------
Merge pull request #630 from LarsGit223/issue629

workbench: on re-scan dir only regenerate tags for that dir, not for all.


Modified Paths:
--------------
    workbench/src/wb_project.c

Modified: workbench/src/wb_project.c
6 lines changed, 3 insertions(+), 3 deletions(-)
===================================================================
@@ -565,7 +565,7 @@ static GeanyFiletype *filetypes_detect(const gchar *utf8_filename)
 
 
 /* Regenerate tags */
-static void wb_project_regenerate_tags(WB_PROJECT_DIR *root, G_GNUC_UNUSED gpointer user_data)
+static void wb_project_dir_regenerate_tags(WB_PROJECT_DIR *root, G_GNUC_UNUSED gpointer user_data)
 {
 	GHashTableIter iter;
 	gpointer key, value;
@@ -611,7 +611,7 @@ guint wb_project_dir_rescan(WB_PROJECT *prj, WB_PROJECT_DIR *root)
 	total = wb_project_get_file_count(prj);
 	if (prj->generate_tag_prefs == WB_PROJECT_TAG_PREFS_YES || (prj->generate_tag_prefs == WB_PROJECT_TAG_PREFS_AUTO && total < 300))
 	{
-		g_slist_foreach(prj->directories, (GFunc)wb_project_regenerate_tags, NULL);
+		wb_project_dir_regenerate_tags(root, NULL);
 	}
 	return filenum;
 }
@@ -642,7 +642,7 @@ void wb_project_rescan(WB_PROJECT *prj)
 
 	if (prj->generate_tag_prefs == WB_PROJECT_TAG_PREFS_YES || (prj->generate_tag_prefs == WB_PROJECT_TAG_PREFS_AUTO && filenum < 300))
 	{
-		g_slist_foreach(prj->directories, (GFunc)wb_project_regenerate_tags, NULL);
+		g_slist_foreach(prj->directories, (GFunc)wb_project_dir_regenerate_tags, NULL);
 	}
 }
 



--------------
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