[pitivi] mediafilespreviewer: Reuse togglePlayback
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] mediafilespreviewer: Reuse togglePlayback
- Date: Thu, 19 Nov 2015 10:03:20 +0000 (UTC)
commit 396bbdf73b20db34f2d2d2d346fd6a339a46ee28
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Thu Nov 19 09:45:08 2015 +0100
mediafilespreviewer: Reuse togglePlayback
pitivi/mediafilespreviewer.py | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/pitivi/mediafilespreviewer.py b/pitivi/mediafilespreviewer.py
index 3e83125..ae1ec2b 100644
--- a/pitivi/mediafilespreviewer.py
+++ b/pitivi/mediafilespreviewer.py
@@ -368,10 +368,7 @@ class PreviewWidget(Gtk.Grid, Loggable):
return self.is_playing
def _on_start_stop_clicked_cb(self, button):
- if self.is_playing:
- self.pause()
- else:
- self.play()
+ self.togglePlayback()
def _on_zoom_clicked_cb(self, button, increment):
if self.current_preview_type == 'video':
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]