Author: duncan
Date: Wed Jan  3 03:30:40 2007
New Revision: 8916

Modified:
   branches/rel-1/freevo/src/menu.py

Log:
Fixes goto shutdown when the main menu is on two pages
Patch from Ryan Roth applied


Modified: branches/rel-1/freevo/src/menu.py
==============================================================================
--- branches/rel-1/freevo/src/menu.py   (original)
+++ branches/rel-1/freevo/src/menu.py   Wed Jan  3 03:30:40 2007
@@ -269,14 +269,16 @@
         menu = self.menustack[0]
         self.init_page()
 
-        if media == 'shutdown':
-            menu.selected = self.all_items[len(self.menustack[0].choices)-1]
+        if media == 'shutdown':  #bookmark
+            menu.selected = 0
             for menuitem in self.menustack[0].choices:
+                if self.all_items.index(menuitem) >= len(self.all_items)-1:
+                    self.goto_next_page()
                 if string.find(str(menuitem), 'shutdown.') > 0:
                     menu.selected = menuitem
-                    self.refresh()
                     self.eventhandler(MENU_SELECT)
                     return
+
         elif media == 'tv.guide':
             menu.selected = self.all_items[len(self.menustack[0].choices)-1]
             for menuitem in self.menustack[0].choices:

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to