Ticket #4451: patch-pagekeys21.cpp

File patch-pagekeys21.cpp, 2.6 KB (added by Yeechang Lee <ylee@…>, 18 years ago)

Patch updated against r16237

Line 
1Index: libs/libmythtv/tv_play.cpp
2===================================================================
3--- libs/libmythtv/tv_play.cpp (revision 16237)
4+++ libs/libmythtv/tv_play.cpp (working copy)
5@@ -301,9 +301,9 @@
6 {
7 REG_KEY("TV Frontend", "PAGEUP", "Page Up", "3");
8 REG_KEY("TV Frontend", "PAGEDOWN", "Page Down", "9");
9- REG_KEY("TV Frontend", "PAGETOP", "Page to top of list", "");
10- REG_KEY("TV Frontend", "PAGEMIDDLE", "Page to middle of list", "");
11- REG_KEY("TV Frontend", "PAGEBOTTOM", "Page to bottom of list", "");
12+ REG_KEY("TV Frontend", "PAGETOP", "Page to top of list", "2");
13+ REG_KEY("TV Frontend", "PAGEMIDDLE", "Page to middle of list", "5");
14+ REG_KEY("TV Frontend", "PAGEBOTTOM", "Page to bottom of list", "8");
15 REG_KEY("TV Frontend", "DELETE", "Delete Program", "D");
16 REG_KEY("TV Frontend", "PLAYBACK", "Play Program", "P");
17 REG_KEY("TV Frontend", "TOGGLERECORD", "Toggle recording status of current "
18Index: keys.txt
19===================================================================
20--- keys.txt (revision 16237)
21+++ keys.txt (working copy)
22@@ -275,6 +275,7 @@
23 -----------------------
24
25 - "1" or F1 to get a popup on the meaning of the icons
26+- "2"/"5"/"8" moves to top/middle/bottom of an active list
27 - / to tag a recording. Tagged recordings can be played (in order or
28 shuffled) and deleted as a group. You can also change the
29 recording group for several recordings at once by tagging them and
30Index: programs/mythfrontend/playbackbox.cpp
31===================================================================
32--- programs/mythfrontend/playbackbox.cpp (revision 16237)
33+++ programs/mythfrontend/playbackbox.cpp (working copy)
34@@ -1686,6 +1686,7 @@
35 paintSkipUpdate = false;
36 update(drawListBounds);
37 update(drawInfoBounds);
38+ update(blackholeBounds);
39 }
40 }
41
42@@ -1702,7 +1703,7 @@
43 }
44 else
45 {
46- int progCount = progLists[titleList[titleIndex]].count();
47+ int progCount = progLists[titleList[titleIndex].lower()].count();
48
49 if (progCount > 0)
50 {
51@@ -1711,6 +1712,7 @@
52 paintSkipUpdate = false;
53 update(drawListBounds);
54 update(drawInfoBounds);
55+ update(blackholeBounds);
56 }
57 }
58 }
59@@ -1721,11 +1723,12 @@
60 pageTop();
61 else
62 {
63- progIndex = progLists[titleList[titleIndex]].count() - 1;
64+ progIndex = progLists[titleList[titleIndex].lower()].count() - 1;
65
66 paintSkipUpdate = false;
67 update(drawListBounds);
68 update(drawInfoBounds);
69+ update(blackholeBounds);
70 }
71 }
72