[cvs-annodex] commit (/annodex): annoamp/trunk/annoamp.py
scott
nobody at lists.annodex.net
Fri Nov 18 09:30:15 EST 2005
Update of /annodex (new revision 1642)
Modified files:
annoamp/trunk/annoamp.py
Log Message:
Now saves position of last played file before close.
Seek does not work with mp3's using gst-plugins-ugly.
Modified: annoamp/trunk/annoamp.py
===================================================================
--- annoamp/trunk/annoamp.py 2005-11-17 17:06:39 UTC (rev 1641)
+++ annoamp/trunk/annoamp.py 2005-11-17 22:30:13 UTC (rev 1642)
@@ -67,8 +67,13 @@
widget.get_parent_window().destroy()
def end (widget, self):
- global loop
- loop.quit()
+ global loop
+ global player
+ global history
+ if player.current != -1:
+ old_file = playlist.get_value(playlist.get_iter(player.current), 0)
+ history[old_file][0] = int(xml.get_widget("slider").get_value())
+ loop.quit()
def call_play(player):
videowidget.frame_video_sink()
@@ -373,7 +378,4 @@
loop.run()
save_settings(player)
-#if player.current != -1: FIXME:Loop dies with the treemodel, playlist. Need a current file variable.
-# old_file = playlist.get_value(playlist.get_iter(player.current), 0)
-# history[old_file][0] = xml.get_widget("slider").get_value()
write_history(history)
--
scott
More information about the cvs-annodex
mailing list