[jhbuild: 41/60] [gui] set urgency hint on failures



commit 10cfd1dc59e5793498421cb12d347e74b3ac5c01
Author: Frédéric Péters <fpeters 0d be>
Date:   Thu May 21 22:08:51 2009 +0200

    [gui] set urgency hint on failures
---
 jhbuild/frontends/gtkui.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/jhbuild/frontends/gtkui.py b/jhbuild/frontends/gtkui.py
index 43418f2..0eae83a 100644
--- a/jhbuild/frontends/gtkui.py
+++ b/jhbuild/frontends/gtkui.py
@@ -318,6 +318,8 @@ class AppWindow(gtk.Window, buildscript.BuildScript):
             error_message = None
             self.message(summary)
 
+        if not self.is_active():
+            self.set_urgency_hint(True)
         self.notify.notify(summary=summary, body=error_message,
                 icon=gtk.STOCK_DIALOG_ERROR, expire=5)
 
@@ -351,6 +353,7 @@ class AppWindow(gtk.Window, buildscript.BuildScript):
                     return 'fail'
             if not self.error_resolution:
                 continue
+            self.set_urgency_hint(False)
             if self.error_resolution == 'shell':
                 # set back combobox to "Pick an action"
                 self.error_combo.set_active_iter(iter)



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