SF.net SVN: geany: [803] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Fri Sep 8 13:40:35 UTC 2006


Revision: 803
          http://svn.sourceforge.net/geany/?rev=803&view=rev
Author:   ntrel
Date:     2006-09-08 06:40:30 -0700 (Fri, 08 Sep 2006)

Log Message:
-----------
Show messages window on build failure.
Show build success message on status bar if messages window hidden.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/build.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2006-09-08 13:39:32 UTC (rev 802)
+++ trunk/ChangeLog	2006-09-08 13:40:30 UTC (rev 803)
@@ -8,6 +8,13 @@
    Make C, C++, Ruby and Java error message parsing more tolerant so
    that linker errors are also parsed if debug line info is available.
    Group all gcc-like error message parsing information together.
+ * src/msgwindow.c, src/msgwindow.h:
+   Allow compiler and find messages to be added when the messages
+   window is hidden.
+   Add msgwin_show().
+ * src/build.c:
+   Show messages window on build failure.
+   Show build success message on status bar if messages window hidden.
 
 
 2006-09-07  Enrico Tröger  <enrico.troeger at uvena.de>

Modified: trunk/src/build.c
===================================================================
--- trunk/src/build.c	2006-09-08 13:39:32 UTC (rev 802)
+++ trunk/src/build.c	2006-09-08 13:40:30 UTC (rev 803)
@@ -37,6 +37,7 @@
 
 #include "support.h"
 #include "utils.h"
+#include "ui_utils.h"
 #include "dialogs.h"
 #include "msgwindow.h"
 #include "document.h"
@@ -525,10 +526,13 @@
 	if (failure)
 	{
 		msgwin_compiler_add(COLOR_DARK_RED, TRUE, _("Compilation failed."));
+		if (! app->msgwindow_visible) msgwin_show();
 	}
 	else
 	{
-		msgwin_compiler_add(COLOR_BLUE, TRUE, _("Compilation finished successfully."));
+		gchar *msg = _("Compilation finished successfully.");
+		msgwin_compiler_add(COLOR_BLUE, TRUE, msg);
+		if (! app->msgwindow_visible) ui_set_statusbar(msg, FALSE);
 	}
 
 #endif


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