Also add this to your local_conf.py

EVENTS['menu']['QUIT'] = Event(MENU_GOTO_QUIT)




Ryan Roth wrote:
> Here are a set of diffs to add this feature.  It is kind of an ugly hack.
>
> Ryan
>
>
> [EMAIL PROTECTED] wrote:
>> Hi,
>> I have wrote this question to freevo feature tracker, but this is 
>> probably
>> configuration question, than new feature, so I am posting it here.
>>
>> I don't know how to configure freevo to quit, when off button is 
>> pressed on remote control. Using remote control is possible to go to 
>> Main menu and there go to Quit and confirm it, but I don't know 
>> straight way to do this by one button.
>>
>> Duncanwebb wrote this to my tracker item:
>> begin
>>     button = POWER
>>     prog   = freevo
>>     repeat = 3
>>     config = MENU
>> end
>>
>> This is my current setup, but it is not, what I want (it will go to 
>> main menu,
>> but not quit freevo).
>>
>> Regards,
>> Solbore
>>
>> ------------------------------------------------------------------------- 
>>
>> 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-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/freevo-users
>>
>>   
> ------------------------------------------------------------------------
>
> Index: src/event.py
> ===================================================================
> --- src/event.py      (revision 8748)
> +++ src/event.py      (working copy)
> @@ -117,6 +117,7 @@
>  MENU_REBUILD           = Event('MENU_REBUILD')
>                         
>  MENU_GOTO_MAINMENU     = Event('MENU_GOTO_MAINMENU')
> +MENU_GOTO_QUIT         = Event('MENU_GOTO_QUIT')
>  MENU_GOTO_TV           = Event('MENU_GOTO_TV')
>  MENU_GOTO_TVGUIDE      = Event('MENU_GOTO_TVGUIDE')
>  MENU_GOTO_VIDEOS       = Event('MENU_GOTO_VIDEOS')
>   
> ------------------------------------------------------------------------
>
> Index: src/menu.py
> ===================================================================
> --- src/menu.py       (revision 8748)
> +++ src/menu.py       (working copy)
> @@ -410,6 +410,12 @@
>              self.goto_main_menu()
>              return
>          
> +        if event == MENU_GOTO_QUIT:
> +            self.goto_main_menu()
> +            self.eventhandler(MENU_PAGEDOWN)
> +            self.eventhandler(MENU_SELECT)
> +            return
> +      
>          if event == MENU_GOTO_TV:
>              self.goto_media_menu("tv")
>              return
>   
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> 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-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freevo-devel
>   

-------------------------------------------------------------------------
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-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to