[pitivi] medialibrary: Do not pass useless variables into _updateProgress
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] medialibrary: Do not pass useless variables into _updateProgress
- Date: Mon, 14 Jan 2013 12:38:29 +0000 (UTC)
commit bbe0fd8f0d4ef3156008c739e8ba55ebbb7b377f
Author: Thibault Saunier <thibault saunier collabora com>
Date: Fri Dec 28 11:38:33 2012 -0300
medialibrary: Do not pass useless variables into _updateProgress
pitivi/medialibrary.py | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/pitivi/medialibrary.py b/pitivi/medialibrary.py
index d12f394..3087ba4 100644
--- a/pitivi/medialibrary.py
+++ b/pitivi/medialibrary.py
@@ -485,13 +485,12 @@ class MediaLibraryWidget(Gtk.VBox, Loggable):
self._importDialog.add_filter(default)
self._importDialog.show()
- def _updateProgressbar(self, current_clip_iter=None, total_clips=None):
+ def _updateProgressbar(self):
"""
Update the _progressbar with the ratio of clips imported vs the total
"""
- if current_clip_iter is None and total_clips is None:
- current_clip_iter = self.app.current.nb_imported_files
- total_clips = self.app.current.nb_files_to_import
+ current_clip_iter = self.app.current.nb_imported_files
+ total_clips = self.app.current.nb_files_to_import
progressbar_text = _("Importing clip %(current_clip)d of %(total)d" %
{"current_clip": current_clip_iter,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]