diff options
Diffstat (limited to 'mat-gui')
| -rwxr-xr-x | mat-gui | 12 |
1 files changed, 6 insertions, 6 deletions
| @@ -150,7 +150,7 @@ class GUI(object): | |||
| 150 | 150 | ||
| 151 | if not chooser.run(): # Gtk.STOCK_OK | 151 | if not chooser.run(): # Gtk.STOCK_OK |
| 152 | filenames = chooser.get_filenames() | 152 | filenames = chooser.get_filenames() |
| 153 | GObject.idle_add(self.populate(filenames).next) # asynchrone processing | 153 | GObject.idle_add(self.populate(filenames).next) # asynchronous processing |
| 154 | chooser.destroy() | 154 | chooser.destroy() |
| 155 | 155 | ||
| 156 | def cb_popup_metadata(self, widget, row, col): | 156 | def cb_popup_metadata(self, widget, row, col): |
| @@ -269,9 +269,9 @@ non-anonymised) file to output archive')) | |||
| 269 | elif url.startswith('file:'): # xffm | 269 | elif url.startswith('file:'): # xffm |
| 270 | return url[5:] # 5 is len('file:') | 270 | return url[5:] # 5 is len('file:') |
| 271 | 271 | ||
| 272 | dirties_urls = selection.get_uris() | 272 | dirty_urls = selection.get_uris() |
| 273 | cleaned_urls = map(clean_path, dirties_urls) | 273 | cleaned_urls = map(clean_path, dirty_urls) |
| 274 | GObject.idle_add(self.populate(cleaned_urls).next) # asynchrone processing | 274 | GObject.idle_add(self.populate(cleaned_urls).next) # asynchronous processing |
| 275 | 275 | ||
| 276 | def __add_file_to_treeview(self, filename): | 276 | def __add_file_to_treeview(self, filename): |
| 277 | ''' | 277 | ''' |
| @@ -286,12 +286,12 @@ non-anonymised) file to output archive')) | |||
| 286 | 286 | ||
| 287 | def __process_files(self, func): | 287 | def __process_files(self, func): |
| 288 | ''' | 288 | ''' |
| 289 | Launch the function "func" in a asynchrone way | 289 | Launch the function "func" in a asynchronous way |
| 290 | ''' | 290 | ''' |
| 291 | iterator = self.treeview.get_selection().get_selected_rows()[1] | 291 | iterator = self.treeview.get_selection().get_selected_rows()[1] |
| 292 | if not iterator: # if nothing is selected : select everything | 292 | if not iterator: # if nothing is selected : select everything |
| 293 | iterator = range(len(self.liststore)) | 293 | iterator = range(len(self.liststore)) |
| 294 | task = func(iterator) # launch func() in an asynchrone way | 294 | task = func(iterator) # launch func() in an asynchronous way |
| 295 | GObject.idle_add(task.next) | 295 | GObject.idle_add(task.next) |
| 296 | 296 | ||
| 297 | def __invert(self, button, name): | 297 | def __invert(self, button, name): |
