Update of /cvsroot/freevo/freevo/src/image
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29264/src/image
Modified Files:
viewer.py
Log Message:
update to new kaa.notifier
Index: viewer.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/image/viewer.py,v
retrieving revision 1.81
retrieving revision 1.82
diff -C2 -d -r1.81 -r1.82
*** viewer.py 9 Jul 2005 10:59:16 -0000 1.81
--- viewer.py 13 Jul 2005 19:28:40 -0000 1.82
***************
*** 90,94 ****
self.rotation = None
self.zomm = None
! self.sshow_timer = None
--- 90,94 ----
self.rotation = None
self.zomm = None
! self.sshow_timer = kaa.notifier.OneShotTimer(self.signalhandler)
***************
*** 116,122 ****
self.filename = None
# we don't need the signalhandler anymore
! if self.sshow_timer:
! self.sshow_timer.remove()
! self.sshow_timer = None
# reset bitmap cache
self.bitmapcache = ObjectCache(3, desc='viewer')
--- 116,120 ----
self.filename = None
# we don't need the signalhandler anymore
! self.sshow_timer.stop()
# reset bitmap cache
self.bitmapcache = ObjectCache(3, desc='viewer')
***************
*** 269,275 ****
# start timer
if self.item.duration and self.slideshow and \
! self.sshow_timer == None:
! d = self.item.duration * 1000
! self.sshow_timer = kaa.notifier.timer(d, self.signalhandler)
# Notify everyone about the viewing
--- 267,272 ----
# start timer
if self.item.duration and self.slideshow and \
! not self.sshow_timer.active():
! self.sshow_timer.start(self.item.duration * 1000)
# Notify everyone about the viewing
***************
*** 310,314 ****
"""
self.hide()
- self.sshow_timer = None
self.stop()
return False
--- 307,310 ----
***************
*** 323,333 ****
self.post_event(Event(OSD_MESSAGE, arg=_('pause')))
self.slideshow = False
! if self.sshow_timer:
! self.sshow_timer.remove()
! self.sshow_timer = None
else:
self.post_event(Event(OSD_MESSAGE, arg=_('play')))
self.slideshow = True
! self.sshow_timer = kaa.notifier.timer(1000,
self.signalhandler)
return True
--- 319,327 ----
self.post_event(Event(OSD_MESSAGE, arg=_('pause')))
self.slideshow = False
! self.sshow_timer.stop()
else:
self.post_event(Event(OSD_MESSAGE, arg=_('play')))
self.slideshow = True
! self.sshow_timer.start(1000)
return True
***************
*** 340,346 ****
# up and down will stop the slideshow and pass the
# event to the playlist
! if self.sshow_timer:
! self.sshow_timer.remove()
! self.sshow_timer = None
self.item.eventhandler(event)
return True
--- 334,338 ----
# up and down will stop the slideshow and pass the
# event to the playlist
! self.sshow_timer.stop()
self.item.eventhandler(event)
return True
-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog