Changeset 1175:39f69649ab7c
- Timestamp:
- 05/22/08 18:53:08 (1 month ago)
- Author:
- Ronny Pfannschmidt <Ronny.Pfannschmidt@…>
- Message:
-
adapted api changes
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r1174
|
r1175
|
|
| 86 | 86 | command = self.get_option('command') |
| 87 | 87 | if not command: |
| 88 | | self.boss.get_window().error_dlg( |
| | 88 | self.boss.window.error_dlg( |
| 89 | 89 | _('Controller has no command set') |
| 90 | 90 | ) |
| … |
… |
|
| 188 | 188 | name = self.name_entry.get_text() |
| 189 | 189 | if not name: |
| 190 | | self.svc.boss.get_window().error_dlg( |
| | 190 | self.svc.error_dlg( |
| 191 | 191 | _('Please enter a controller name')) |
| 192 | 192 | return |
| 193 | 193 | for controller in self._project.controllers: |
| 194 | 194 | if controller.config_section == name: |
| 195 | | self.svc.boss.get_window().error_dlg( |
| | 195 | self.svc.error_dlg( |
| 196 | 196 | _('This project already has a controller named %s') % name) |
| 197 | 197 | return |
| … |
… |
|
| 205 | 205 | controller = self.controllers_list.get_selected() |
| 206 | 206 | if controller is not None: |
| 207 | | if self.svc.boss.get_window().yesno_dlg( |
| | 207 | if self.svc.yesno_dlg( |
| 208 | 208 | _('Are you sure you want to delete controller "%s" from this project?') |
| 209 | 209 | % controller.config_section): |
| … |
… |
|
| 326 | 326 | def on_project_add(self, action): |
| 327 | 327 | path = open_directory_dialog( |
| 328 | | self.svc.boss.get_window(), |
| | 328 | self.svc.window, |
| 329 | 329 | _('Select a directory to add') |
| 330 | 330 | ) |
| … |
… |
|
| 341 | 341 | controller.execute() |
| 342 | 342 | else: |
| 343 | | self.svc.boss.get_window().error_dlg( |
| | 343 | self.svc.error_dlg( |
| 344 | 344 | _('This project has no controllers')) |
| 345 | 345 | |
| … |
… |
|
| 462 | 462 | self._save_options() |
| 463 | 463 | return project |
| 464 | | if self.boss.get_window().yesno_dlg( |
| | 464 | if self.boss.window.yesno_dlg( |
| 465 | 465 | _('The directory does not contain a project file, ') + |
| 466 | 466 | _('do you want to create one?') |
| … |
… |
|
| 521 | 521 | |
| 522 | 522 | def remove_project(self, project): |
| 523 | | if self.boss.get_window().yesno_dlg( |
| | 523 | if self.boss.window.yesno_dlg( |
| 524 | 524 | _('Are you sure you want to remove project "%s" from the workspace?') |
| 525 | 525 | % project.name |