[jhbuild: 24/60] [gui] set error box as unsensitive for the duration of a failed module
- From: Frederic Peters <fpeters src gnome org>
- To: svn-commits-list gnome org
- Subject: [jhbuild: 24/60] [gui] set error box as unsensitive for the duration of a failed module
- Date: Sat, 6 Jun 2009 09:49:38 -0400 (EDT)
commit 1d19b18f70b551d9dd7a933086b10347fb7f21f5
Author: Frédéric Péters <fpeters 0d be>
Date: Sun May 17 14:20:26 2009 +0200
[gui] set error box as unsensitive for the duration of a failed module
---
jhbuild/frontends/gtkui.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/jhbuild/frontends/gtkui.py b/jhbuild/frontends/gtkui.py
index 65081bb..9f90199 100644
--- a/jhbuild/frontends/gtkui.py
+++ b/jhbuild/frontends/gtkui.py
@@ -262,6 +262,9 @@ class AppWindow(gtk.Window, buildscript.BuildScript):
if vte:
self.terminal.feed('%s*** %s ***%s\n\r' % (t_bold, module, t_reset))
+ def end_module(self, module, failed):
+ self.error_hbox.hide()
+
def set_action(self, action, module, module_num=-1, action_target=None):
self.progressbar.set_text('%s %s' % (action, action_target or module.name))
@@ -287,12 +290,14 @@ class AppWindow(gtk.Window, buildscript.BuildScript):
(_('Go to stage %s') % altstate, altstate))
self.error_combo.set_active_iter(iter)
+ self.error_hbox.set_sensitive(True)
self.error_hbox.show_all()
self.error_resolution = None
while not self.error_resolution:
while gtk.events_pending():
gtk.main_iteration()
- self.error_hbox.hide()
+ # keep the error hox visible during all of this module duration
+ self.error_hbox.set_sensitive(False)
return self.error_resolution
def execute(self, command, hint=None, cwd=None, extra_env=None):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]