summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuo Jinghua <sunmoon1997@gmail.com>2010-01-30 23:13:28 +0800
committerLuo Jinghua <sunmoon1997@gmail.com>2010-02-09 00:08:20 +0800
commit097ee411a2f8d1ff6dab8c2faa51bf77355001d3 (patch)
tree03a4f29a635215756fa4237b48b6a17a8755e5db
parent15fa9cf51749b7a8e36b0b00f01c70075dc4793e (diff)
totem: get the mrl before emiting starting-video signal
-rw-r--r--totem/plugin/PPSVideoList.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/totem/plugin/PPSVideoList.py b/totem/plugin/PPSVideoList.py
index 4e19f60..67cb548 100644
--- a/totem/plugin/PPSVideoList.py
+++ b/totem/plugin/PPSVideoList.py
@@ -70,10 +70,6 @@ class PPSVideoList (gtk.TreeView):
if self.get_property ("mrl-column") == -1:
return
- play_video = self.emit ("starting-video", self, path)
- if not play_video:
- return
-
model = widget.get_model ()
iter = model.get_iter (path)
@@ -85,6 +81,11 @@ class PPSVideoList (gtk.TreeView):
title = model.get (iter, self.get_property ("title-column"))[0]
if not mrl:
return
+
+ play_video = self.emit ("starting-video", self, path)
+ if not play_video:
+ return
+
if hasattr(self.totem, "add_to_playlist_and_play"):
self.totem.add_to_playlist_and_play (mrl, title, False)
else: