From d242e5091df9426fcc811917e14cd2048956e37e Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Fri, 8 Sep 2006 13:40:30 +0000 Subject: [PATCH] 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 --- ChangeLog | 7 +++++++ src/build.c | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c3858ef5..6a5d56c4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/src/build.c b/src/build.c index 0c8fa669..8224e921 100644 --- a/src/build.c +++ b/src/build.c @@ -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