SF.net SVN: geany: [1473] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Mon Apr 23 12:55:38 UTC 2007
Revision: 1473
http://svn.sourceforge.net/geany/?rev=1473&view=rev
Author: ntrel
Date: 2007-04-23 05:55:37 -0700 (Mon, 23 Apr 2007)
Log Message:
-----------
When linking (or using Make Custom), remove error indicators in all
documents (should fix #1705374).
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/build.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2007-04-23 12:30:27 UTC (rev 1472)
+++ trunk/ChangeLog 2007-04-23 12:55:37 UTC (rev 1473)
@@ -1,3 +1,10 @@
+2007-04-23 Nick Treleaven <nick.treleaven at btinternet.com>
+
+ * src/build.c:
+ When linking (or using Make Custom), remove error indicators in all
+ documents (should fix #1705374).
+
+
2007-04-21 Nick Treleaven <nick.treleaven at btinternet.com>
* src/project.c, src/project.h, src/keyfile.c, src/main.c:
Modified: trunk/src/build.c
===================================================================
--- trunk/src/build.c 2007-04-23 12:30:27 UTC (rev 1472)
+++ trunk/src/build.c 2007-04-23 12:55:37 UTC (rev 1473)
@@ -407,6 +407,34 @@
}
+/* If linking, clear all error indicators in all documents.
+ * Otherwise, just clear error indicators in document idx. */
+static void clear_errors(gint idx)
+{
+ switch (build_info.type)
+ {
+ case GBO_COMPILE:
+ case GBO_MAKE_OBJECT:
+ document_clear_indicators(idx);
+ break;
+
+ case GBO_BUILD:
+ case GBO_MAKE_ALL:
+ case GBO_MAKE_CUSTOM:
+ {
+ guint i;
+
+ for (i = 0; i < doc_array->len; i++)
+ {
+ if (doc_list[i].is_valid)
+ document_clear_indicators(i);
+ }
+ break;
+ }
+ }
+}
+
+
/* dir is the UTF-8 working directory to run cmd in. It can be NULL to use the
* idx document directory */
static GPid build_spawn_cmd(gint idx, const gchar *cmd, const gchar *dir)
@@ -425,7 +453,7 @@
g_return_val_if_fail(DOC_IDX_VALID(idx), (GPid) 1);
- document_clear_indicators(idx);
+ clear_errors(idx);
locale_filename = utils_get_locale_from_utf8(doc_list[idx].file_name);
executable = utils_remove_ext_from_filename(locale_filename);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list