From 04282676d9d235a5d9e304f206b11ee09ae82dad Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 18 Aug 2011 17:47:50 +0200 Subject: Ugly statusbar system --- mat-gui | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mat-gui b/mat-gui index 00506d6..092353d 100755 --- a/mat-gui +++ b/mat-gui @@ -391,6 +391,7 @@ non-anonymised) file to output archive')) Check if selected elements are clean ''' for line in iterator: # for each file in selection + self.statusbar.push(0, 'Checking %s...' % self.liststore[line][1]) if self.liststore[line][0].file.is_clean(): string = _('clean') else: @@ -398,6 +399,7 @@ non-anonymised) file to output archive')) logging.info('%s is %s' % (self.liststore[line][1], string)) self.liststore[line][3] = string yield True + self.statusbar.push(0, 'Ready') yield False def mat_clean(self, iterator): @@ -406,11 +408,13 @@ non-anonymised) file to output archive')) ''' for line in iterator: # for each file in selection logging.info('Cleaning %s' % self.liststore[line][1]) + self.statusbar.push(0, 'Cleaning %s...' % self.liststore[line][1]) if self.liststore[line][3] is not _('clean'): if self.force or not self.liststore[line][0].file.is_clean(): self.liststore[line][0].file.remove_all() self.liststore[line][3] = _('clean') yield True + self.statusbat.push(0, 'Ready') yield False def mat_clean_dirty(self, iterator): @@ -419,11 +423,13 @@ non-anonymised) file to output archive')) ''' for line in iterator: # for each file in selection logging.info('Cleaning (lossy way) %s' % self.liststore[line][1]) + self.statusbar.push(0, 'Cleaning %s...' % self.liststore[line][1]) if self.liststore[line][3] is not _('clean'): if self.force or not self.liststore[line][0].file.is_clean(): self.liststore[line][0].file.remove_all_ugly() self.liststore[line][3] = _('clean') yield True + self.statusbar.push(0, 'Ready') yield False -- cgit v1.3