[jhbuild] Clear the current notification at the start of a phase



commit f6c04b77244bed314183f6899079575adbb52ab3
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed May 18 15:53:38 2011 -0400

    Clear the current notification at the start of a phase
    
    https://bugzilla.gnome.org/show_bug.cgi?id=650533

 jhbuild/frontends/gtkui.py    |    3 +++
 jhbuild/frontends/terminal.py |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/jhbuild/frontends/gtkui.py b/jhbuild/frontends/gtkui.py
index 1aad66f..a72eb50 100644
--- a/jhbuild/frontends/gtkui.py
+++ b/jhbuild/frontends/gtkui.py
@@ -349,6 +349,9 @@ class AppWindow(gtk.Window, buildscript.BuildScript):
         self.build_button.set_sensitive(True)
         self.module_hbox.set_sensitive(True)
 
+    def start_phase(self):
+        self.notify.clear()
+
     def start_module(self, module):
         idx = [x.name for x in self.modulelist].index(module)
         self.progressbar.set_fraction((1.0*idx) / len(self.modulelist))
diff --git a/jhbuild/frontends/terminal.py b/jhbuild/frontends/terminal.py
index 5f8e3ed..d8e2e10 100644
--- a/jhbuild/frontends/terminal.py
+++ b/jhbuild/frontends/terminal.py
@@ -260,6 +260,7 @@ class TerminalBuildScript(buildscript.BuildScript):
                                % print_args['command'])
 
     def start_phase(self, module, phase):
+        self.notify.clear()
         self.trayicon.set_icon(os.path.join(icondir,
                                phase_map.get(phase, 'build.png')))
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]