Update of /cvsroot/freevo/freevo/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11938/src
Modified Files: menu.py Log Message: make it possible to change back to the old navigation style Index: menu.py =================================================================== RCS file: /cvsroot/freevo/freevo/src/menu.py,v retrieving revision 1.82 retrieving revision 1.83 diff -C2 -d -r1.82 -r1.83 *** menu.py 4 Feb 2004 22:32:42 -0000 1.82 --- menu.py 5 Feb 2004 19:56:40 -0000 1.83 *************** *** 10,13 **** --- 10,16 ---- # ----------------------------------------------------------------------- # $Log$ + # Revision 1.83 2004/02/05 19:56:40 dischi + # make it possible to change back to the old navigation style + # # Revision 1.82 2004/02/04 22:32:42 gsbarbieri # Changed LEFT/RIGHT behaviour. *************** *** 361,364 **** --- 364,379 ---- menu = self.menustack[-1] + if self.cols == 1 and config.MENU_ARROW_NAVIGATION: + if event == MENU_LEFT: + event = MENU_BACK_ONE_MENU + elif event == MENU_RIGHT: + event = MENU_SELECT + + elif self.cols == 1: + if event == MENU_LEFT: + event = MENU_PAGEUP + elif event == MENU_RIGHT: + event = MENU_PAGEDOWN + if self.eventhandler_plugins == None: self.eventhandler_plugins = plugin.get('daemon_eventhandler') *************** *** 368,373 **** return ! if event == MENU_BACK_ONE_MENU \ ! or (event == MENU_LEFT and self.cols == 1): self.back_one_menu() return --- 383,387 ---- return ! if event == MENU_BACK_ONE_MENU: self.back_one_menu() return *************** *** 490,494 **** ! elif event == MENU_LEFT and self.cols > 1: # Do nothing for an empty file list if not len(self.menu_items): --- 504,508 ---- ! elif event == MENU_LEFT: # Do nothing for an empty file list if not len(self.menu_items): *************** *** 510,514 **** ! elif event == MENU_RIGHT and self.cols > 1: # Do nothing for an empty file list if not len(self.menu_items): --- 524,528 ---- ! elif event == MENU_RIGHT: # Do nothing for an empty file list if not len(self.menu_items): *************** *** 534,539 **** menu.selected.play(menuw=self) ! elif event == MENU_SELECT or event == MENU_PLAY_ITEM \ ! or (event == MENU_RIGHT and self.cols == 1): action = None arg = None --- 548,552 ---- menu.selected.play(menuw=self) ! elif event == MENU_SELECT or event == MENU_PLAY_ITEM: action = None arg = None ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Freevo-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-cvslog