[mythtv] mythmusic pageup/pagedown

Damion de Soto damion at snapgear.com
Wed Feb 2 03:16:44 UTC 2005


Hi All,

Here is a patch to enable the page-up/page-down keys to be
mapped to actual page-up and page-down on the myth music playback
screen.
(useful if you use the ShowWholeTree setting and have a large playlist)

you will also need to change the key-mappings so your FFWD and RWND controls
aren't the pageup/pagedown defaults anymore.

regards,

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Damion de Soto - Software Engineer  email:     damion at snapgear.com
SnapGear - A CyberGuard Company ---    ph:         +61 7 3435 2809
  | Custom Embedded Solutions          fax:         +61 7 3891 3630
  | and Security Appliances            web: http://www.snapgear.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ---  Free Embedded Linux Distro at   http://www.snapgear.org  ---
-------------- next part --------------
Index: playbackbox.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythmusic/mythmusic/playbackbox.cpp,v
retrieving revision 1.78
diff -u -r1.78 playbackbox.cpp
--- playbackbox.cpp	28 Jan 2005 02:59:03 -0000	1.78
+++ playbackbox.cpp	2 Feb 2005 03:06:45 -0000
@@ -377,6 +377,10 @@
                 music_tree_list->forceLastBin();
                 music_tree_list->refresh();
             }
+            else if (action == "PAGEUP")
+                music_tree_list->pageUp();
+            else if (action == "PAGEDOWN")
+                music_tree_list->pageDown();
             else
                 handled = false;
         }


More information about the mythtv-dev mailing list