Changeset 1151:121df08315cf
- Timestamp:
- 05/11/08 22:38:19 (2 months ago)
- Author:
- Ronny Pfannschmidt <Ronny.Pfannschmidt@…>
- Message:
-
switched sort_func in optionsmanager
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r1145
|
r1151
|
|
| 43 | 43 | locale = Locale('optionsmanager') |
| 44 | 44 | _ = locale.gettext |
| 45 | | |
| 46 | | def service_sort_func(s1, s2): |
| 47 | | return cmp(s1.get_label(), s2.get_label()) |
| 48 | | |
| 49 | | def options_sort_func(o, o1): |
| 50 | | return cmp(o1.name, o2.name) |
| 51 | 45 | |
| 52 | 46 | |
| … |
… |
|
| 79 | 73 | (svc.get_label(), svc), |
| 80 | 74 | ) |
| 81 | | self._services.sort(service_sort_func) |
| | 75 | self._services.sort(key=Service.sort_key) |
| 82 | 76 | self._tips = gtk.Tooltips() |
| 83 | 77 | self.service_combo.prefill(self._services_display) |