[geany/geany-plugins] cb1dbe: Add some TODOs

Jiří Techet git-noreply at xxxxx
Mon Apr 1 01:03:41 UTC 2019


Branch:      refs/heads/master
Author:      Jiří Techet <techet at gmail.com>
Committer:   Jiří Techet <techet at gmail.com>
Date:        Mon, 15 Oct 2018 19:29:20 UTC
Commit:      cb1dbe3d93d90833e9da5af79eab26b8903cee1d
             https://github.com/geany/geany-plugins/commit/cb1dbe3d93d90833e9da5af79eab26b8903cee1d

Log Message:
-----------
Add some TODOs


Modified Paths:
--------------
    projectorganizer/src/prjorg-sidebar.c

Modified: projectorganizer/src/prjorg-sidebar.c
4 lines changed, 4 insertions(+), 0 deletions(-)
===================================================================
@@ -397,6 +397,7 @@ static void on_create_file(G_GNUC_UNUSED GtkMenuItem *menuitem, G_GNUC_UNUSED gp
 		if (create_file(path))
 		{
 			open_file(path);
+			//TODO: don't rescan the whole project, only change the affected file
 			prjorg_project_rescan();
 			prjorg_sidebar_update(TRUE);
 		}
@@ -426,6 +427,7 @@ static void on_create_dir(G_GNUC_UNUSED GtkMenuItem *menuitem, G_GNUC_UNUSED gpo
 
 		if (create_dir(path))
 		{
+			//TODO: don't rescan the whole project, only change the affected directory
 			prjorg_project_rescan();
 			prjorg_sidebar_update(TRUE);
 		}
@@ -466,6 +468,7 @@ static void on_rename(G_GNUC_UNUSED GtkMenuItem *menuitem, G_GNUC_UNUSED gpointe
 			gchar *newpath = g_build_path(G_DIR_SEPARATOR_S, dir, newname, NULL);
 			if (rename_file_or_dir(oldpath, newpath))
 			{
+				//TODO: don't rescan the whole project, only change the affected file
 				prjorg_project_rescan();
 				prjorg_sidebar_update(TRUE);
 			}
@@ -506,6 +509,7 @@ static void on_delete(G_GNUC_UNUSED GtkMenuItem *menuitem, G_GNUC_UNUSED gpointe
 
 		g_free(path);
 
+		//TODO: don't rescan the whole project, only change the affected file
 		prjorg_project_rescan();
 		prjorg_sidebar_update(TRUE);
 	}



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