[pitivi: 3/16] Make MainWindow.setBestZoomRatio public
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi: 3/16] Make MainWindow.setBestZoomRatio public
- Date: Tue, 22 Mar 2011 10:35:16 +0000 (UTC)
commit 81a334417802afced2173b568b6a10bba1b14bec
Author: Thibault Saunier <thibault saunier collabora co uk>
Date: Mon Mar 21 12:19:57 2011 -0400
Make MainWindow.setBestZoomRatio public
pitivi/ui/mainwindow.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/ui/mainwindow.py b/pitivi/ui/mainwindow.py
index 75b1098..0f919e8 100644
--- a/pitivi/ui/mainwindow.py
+++ b/pitivi/ui/mainwindow.py
@@ -786,7 +786,7 @@ class PitiviMainWindow(gtk.Window, Loggable):
self._missingUriOnLoading = False
if project.timeline.duration != 0:
- self._setBestZoomRatio()
+ self.setBestZoomRatio()
else:
self._zoom_duration_changed = True
@@ -795,7 +795,7 @@ class PitiviMainWindow(gtk.Window, Loggable):
# preliminary seek to ensure the project pipeline is configured
self.project.seeker.seek(0)
- def _setBestZoomRatio(self):
+ def setBestZoomRatio(self):
ruler_width = self.timeline.ruler.get_allocation()[2]
timeline_duration = self.project.timeline.duration
@@ -1081,7 +1081,7 @@ class PitiviMainWindow(gtk.Window, Loggable):
if duration > 0:
sensitive = True
if self._zoom_duration_changed:
- self._setBestZoomRatio()
+ self.setBestZoomRatio()
self._zoom_duration_changed = False
else:
sensitive = False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]