[mythtv] Shutdown option on main menu patch...
Trey Ethridge
tale at juno.com
Fri Sep 19 18:22:50 EDT 2003
Hello all,
This is a patch to add an option to the main menu named "Shutdown". When selected it will bring up the same dialog as <X>-Esc (<X> being the key you configured in setup).
-- tale
Index: mythtv/libs/libmyth/themedmenu.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmyth/themedmenu.cpp,v
retrieving revision 1.56
diff -u -2 -r1.56 themedmenu.cpp
--- mythtv/libs/libmyth/themedmenu.cpp 17 Sep 2003 16:53:55 -0000 1.56
+++ mythtv/libs/libmyth/themedmenu.cpp 19 Sep 2003 17:16:08 -0000
@@ -1651,4 +1651,11 @@
case Key_Space:
{
+ // This catches the main menu action option "SHUTDOWN",
+ // which displays myth's built in shutdown screen.
+ if(menulevel == 1 && activebutton->action.left(8) == "SHUTDOWN")
+ {
+ done(0);
+ }
+
handleAction(activebutton->action);
lastbutton = NULL;
Index: mythtv/programs/mythfrontend/mainmenu.xml
===================================================================
RCS file: /var/lib/mythcvs/mythtv/programs/mythfrontend/mainmenu.xml,v
retrieving revision 1.27
diff -u -2 -r1.27 mainmenu.xml
--- mythtv/programs/mythfrontend/mainmenu.xml 17 Sep 2003 17:10:56 -0000 1.27
+++ mythtv/programs/mythfrontend/mainmenu.xml 19 Sep 2003 17:16:08 -0000
@@ -117,4 +117,10 @@
<action>MENU main_settings.xml</action>
</button>
+
+ <button>
+ <type>SHUTDOWN</type>
+ <text>Shutdown</text>
+ <action>SHUTDOWN</action>
+ </button>
</mythmenu>
________________________________________________________________
The best thing to hit the internet in years - Juno SpeedBand!
Surf the web up to FIVE TIMES FASTER!
Only $14.95/ month - visit www.juno.com to sign up today!
More information about the mythtv-dev
mailing list