[gedit-latex] Add alert to the statusbar while the document is compiling
- From: Jose Aliste <jaliste src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-latex] Add alert to the statusbar while the document is compiling
- Date: Thu, 28 Jul 2011 13:45:38 +0000 (UTC)
commit 62750fa1ca396c32e48120f88d5c365b4258d0bc
Author: Lucas David-Roesler <roesler lucas gmail com>
Date: Wed Jul 27 19:21:13 2011 -0400
Add alert to the statusbar while the document is compiling
latex/tools/__init__.py | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/latex/tools/__init__.py b/latex/tools/__init__.py
index ae4b36f..8b0a473 100644
--- a/latex/tools/__init__.py
+++ b/latex/tools/__init__.py
@@ -159,6 +159,10 @@ class ToolRunner(Process):
self._stderr_text = ""
self._job_iter = iter(tool.jobs)
+ # add alert to the statusbar
+ self._statusbar = Gedit.App.get_default().get_active_window().get_statusbar()
+ self._msg_id = self._statusbar.push(1,'Compiling document ...')
+
# init the IStructuredIssueHandler
self._issue_handler = issue_handler
self._issue_handler.clear()
@@ -239,6 +243,9 @@ class ToolRunner(Process):
# show issues
self._issue_handler.append_issues(self._issue_partitions[self._job], post_processor.issues)
+ # remove alert
+ self._statusbar.remove(1,self._msg_id)
+
if post_processor.successful:
self._issue_handler.set_partition_state(self._issue_partitions[self._job], "succeeded")
self.__proceed()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]