--- plugins/build-basic-autotools/plugin.c	2009-03-06 15:03:44.000000000 +0530
+++ plugins/build-basic-autotools/plugin.c	2009-04-03 18:24:35.000000000 +0530
@@ -123,6 +123,9 @@
 
 	BuildProgram *program;
 	
+	gchar *dir;
+	gint message_pane_number;
+	
 	IAnjutaMessageView *message_view;
 	GHashTable *build_dir_stack;
 	
@@ -1003,6 +1006,9 @@
 					 gint child_pid, gint status, gulong time_taken,
 					 BuildContext *context)
 {
+	IAnjutaMessageManager *msg_manager;
+	gchar new_title[128], *status_msg, *subdir;
+
 	context->used = FALSE;
 	if (context->program->callback != NULL)
 	{
@@ -1064,15 +1070,27 @@
 		{
 			ianjuta_message_view_buffer_append (context->message_view,
 									_("Completed unsuccessfully\n"), NULL);
+			status_msg = g_strdup ("unsuccessful");
 		}
 		else
 		{
 			ianjuta_message_view_buffer_append (context->message_view,
 									   _("Completed successfully\n"), NULL);
+			status_msg = g_strdup ("complete");
 		}
 		ianjuta_message_view_buffer_append (context->message_view, buff1, NULL);
 		g_free (buff1);
-		
+
+		msg_manager = anjuta_shell_get_interface (ANJUTA_PLUGIN (context->plugin)->shell,
+							 IAnjutaMessageManager,
+							 NULL);
+
+		/* Update the message view title */
+		subdir = g_path_get_basename(context->dir);
+		snprintf (new_title, 128, _("Build %d: %s %s"), context->message_pane_number,  subdir, status_msg);	
+		g_free(subdir);
+		ianjuta_message_manager_set_view_title(msg_manager, context->message_view, new_title, NULL);
+
 		/* Goto the first error if it exists */
 		/* if (anjuta_preferences_get_int (ANJUTA_PREFERENCES (app->preferences),
 										"build.option.gotofirst"))
@@ -1114,7 +1132,7 @@
 	subdir = g_path_get_basename (dir);
 	/* Translators: the first number is the number of the build attemp,
 	   the string is the directory where the build takes place */
-	snprintf (mname, 128, _("Build %d: %s"), ++message_pane_count, subdir);
+	snprintf (mname, 128, _("Build %d: %s working..."), ++message_pane_count, subdir);
 	g_free (subdir);
 	
 	/* If we already have MAX_BUILD_PANES build panes, find a free context */
@@ -1166,6 +1184,9 @@
 						   (GWeakNotify)on_message_view_destroyed, context);
 	}
 
+	context->dir=g_strdup(dir);
+	context->message_pane_number = message_pane_count;
+
 	ianjuta_message_manager_set_current_view (mesg_manager,
 											  context->message_view, NULL);
 	
