Show messages window on build failure.

Show build success message on status bar if messages window hidden.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@803 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2006-09-08 13:40:30 +00:00
parent dedded8c37
commit d242e5091d
2 changed files with 12 additions and 1 deletions

View File

@ -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@uvena.de>

View File

@ -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 @@ void build_exit_cb(GPid child_pid, gint status, gpointer user_data)
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