Author: bklaas
Date: Tue Nov  4 07:18:16 2008
New Revision: 3273

URL: http://svn.slimdevices.com?rev=3273&root=Jive&view=rev
Log:
Bug: 9884
Description: make play/pause icon correct on track change

Modified:
    
7.3/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua

Modified: 
7.3/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua
URL: 
http://svn.slimdevices.com/7.3/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua?rev=3273&root=Jive&r1=3272&r2=3273&view=diff
==============================================================================
--- 
7.3/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua
 (original)
+++ 
7.3/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua
 Tue Nov  4 07:18:16 2008
@@ -255,8 +255,8 @@
        end
 
        if player:getId() ~= self.player:getId() then
-               log:warn("notification was not for this player")
-               log:warn("notification: ", player:getId(), "your player: ", 
self.player:getId())
+               log:info("notification was not for this player")
+               log:info("notification: ", player:getId(), "your player: ", 
self.player:getId())
                return false
        else
                return true
@@ -530,6 +530,16 @@
                        artwork = self[windowStyle].artwork,
        })
 
+       local playIcon = Button(Icon('play'),
+                               function() 
+                               window:dispatchNewEvent(EVENT_KEY_PRESS, 
KEY_PAUSE) 
+                               return EVENT_CONSUME 
+                       end
+                       )
+       if playerStatus and playerStatus.mode == 'play' then
+               playIcon:setStyle('pause')
+       end
+
        self[windowStyle].controlsGroup = Group(components.npcontrols, {
                        rew = Button(
                                Icon('rew'),
@@ -538,14 +548,8 @@
                                        return EVENT_CONSUME 
                                end
                        ),
-                       play = Button(
-                               Icon('play'),
-                               function() 
-                                       
window:dispatchNewEvent(EVENT_KEY_PRESS, KEY_PAUSE) 
-                                       return EVENT_CONSUME 
-                               end
-                       ),
-                       fwd = Button(
+                       play = playIcon,
+                       fwd  = Button(
                                Icon('fwd'),
                                function() 
                                        
window:dispatchNewEvent(EVENT_KEY_PRESS, KEY_FWD) 

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins

Reply via email to