~ubuntu-branches/ubuntu/lucid/exaile/lucid

« back to all changes in this revision

Viewing changes to xlgui/properties.py

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Starr-Bochicchio
  • Date: 2010-04-12 20:46:51 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20100412204651-3dk9ogh1rtp9sc1k
Tags: 0.3.1.1-0ubuntu1
* New upstream bugfix release.

* debian/exaile.1, debian/exaile.manpages: Include and
  install manpage for exaile based on help2man output
  but including additions and tweaks.
* debian/source/format: Add a file conataining "1.0"
  to make lintian happy. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
172
172
 
173
173
        return l
174
174
 
175
 
    def _tags_write(self):
176
 
        dialog = SavingProgressWindow(self.dialog, len(self.tracks))
177
 
        for n, track in enumerate(self.tracks):
 
175
    def _tags_write(self, data):
 
176
        dialog = SavingProgressWindow(self.dialog, len(data))
 
177
        for n, track in data:
178
178
            poplist = []
179
179
            for tag in track:
180
180
                if not tag.startswith("__"):
320
320
        self._remove_tag_mode(self.remove_tag_button)
321
321
 
322
322
    def _on_apply(self, w):
323
 
        if self.tracks != self.tracks_original:
324
 
            self._tags_write()
 
323
        modified = []
 
324
        for n, track in enumerate(self.tracks):
 
325
            if track != self.tracks_original[n]:
 
326
                modified.append((n, track))
 
327
 
 
328
        if modified:
 
329
            self._tags_write(modified)
325
330
 
326
331
            self.tracks = None
327
332
            self.tracks_original = None