Commit 890bd1d0c78003dd7747cbcf1197381db4ca6d04.patch

  • avatar
  • egaudet
  • Sun Sep 27 23:12:00 CEST 2009
Added some more patches and cleaned up others to apply cleanly for webos 1.1.0
  
1Modifies the month controller to show allday events in the month scene by changing the background of the cell to a light blue.
2Index: /usr/palm/applications/com.palm.app.calendar/app/controllers/month-assistant.js
3===================================================================
4--- .orig/usr/palm/applications/com.palm.app.calendar/app/controllers/month-assistant.js
5+++ /usr/palm/applications/com.palm.app.calendar/app/controllers/month-assistant.js
6@@ -25,11 +25,25 @@ var MonthAssistant = Class.create({
7 this.scrollerModel = { scrollbars: false, mode: "vertical-snap", snapIndex: 0, snapElements: { y: [] } };
8 },
9
1diff --git a/usr/palm/applications/com.palm.app.calendar/app/controllers/month-assistant.js b/usr/palm/applications/com.palm.app.calendar/app/controllers/month-assistant.js
2index 2e1429e..14e7bda 100644
3--- a/usr/palm/applications/com.palm.app.calendar/app/controllers/month-assistant.js
4+++ b/usr/palm/applications/com.palm.app.calendar/app/controllers/month-assistant.js
5@@ -27,11 +27,25 @@ var MonthAssistant = Class.create({
6 this.scrollerModel = { scrollbars: false, mode: "vertical-snap", snapIndex: 0, snapElements: { y: [] } };
7 },
8
109+ fullEvts: null,
11+
12 setupMonth: function(startDate, endDate, callbackfn)
13 {
14+ getCalendarService().getEvents(getCurrentCal(),startDate.getTime(), endDate.getTime(),
15+ this.getEventsCallback.bind(this),
16+ this.controller,
17+ this.getEventsFailCallback,
18+ {useSlices: true}
10+
11 setupMonth: function(startDate, endDate, callbackfn)
12 {
13+ getCalendarService().getEvents(getCurrentCal(),startDate.getTime(),endDate.getTime(),
14+ this.getEventsCallback.bind(this),
15+ this.controller,
16+ this.getEventsFailCallback,
17+ {useSlices: true}
1918+ );
20 getCalendarService().getBusyDays(getCurrentCal(), startDate.getTime(), endDate.getTime(), callbackfn, this.controller);
21 },
22-
19 getCalendarService().getBusyDays(getCurrentCal(), startDate.getTime(), endDate.getTime(), callbackfn, this.controller);
20 },
21
22+ getEventsCallback: function(resp)
23+ {
24+ Mojo.Log.info('month-assistant:getEventsCallback');
25+ this.fullEvts = resp.days;
26+ },
2327+
24+ getEventsCallback: function(resp)
25+ {
26+Mojo.Log.info('month-assistant:getEventsCallback');
27+ this.fullEvts = resp.days;
28+ },
29+
30 buildViewHeader: function()
31 {
32 //Mojo.Log.info("month-assistant: buildViewHeader");
33@@ -342,6 +356,10 @@ var MonthAssistant = Class.create({
34 var daylen = days.length - 1; // We get back more days of info that we want - 1 more in fact, because its inclusive, rather than exclusive
35 for (var d = 0; d < daylen; d++)
36 {
37+ if (this.fullEvts[d].allDayEvents.length > 0)
38+ {
39+ dayCell.style.backgroundColor = '#99ccff';
40+ }
41 var day = this._token2state(days.charCodeAt(d));
42
43 var child = dayCell.firstChild;
28 buildViewHeader: function()
29 {
30 //Mojo.Log.info("month-assistant: buildViewHeader");
31@@ -370,6 +384,10 @@ var MonthAssistant = Class.create({
32 var daylen = days.length - 1; // We get back more days of info that we want - 1 more in fact, because its inclusive, rather than exclusive
33 for (var d = 0; d < daylen; d++)
34 {
35+ if (this.fullEvts[d].allDayEvents.length > 0)
36+ {
37+ dayCel.style.backgroundColor = '#99ccff';
38+ }
39 var day = this._token2state(days.charCodeAt(d));
40
41 var child = dayCell.firstChild;
  
1disable-charging-alert-sound.patch
2
3Index: /usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
4===================================================================
5--- .orig/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
6+++ /usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
7@@ -1264,7 +1264,7 @@ handlePowerNotifications: function(paylo
1diff --git a/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js b/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
2index f343ce2..6f9bcd3 100644
3--- a/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
4+++ b/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
5@@ -1479,7 +1479,7 @@ handlePowerNotifications: function(payload) {
86 this.controller.showBanner({
97 messageText: batteryalert,
108 icon: "/usr/lib/luna/system/luna-systemui/images/notification-small-charging.png",
11- soundClass: "alerts"
9- soundClass: soundClassName
1210+ soundClass: ""
1311 },null, 'chargingAlert');
1412 }
  
1// enable the dev mode icon in launcher
2Index: /usr/palm/applications/com.palm.app.devmodeswitcher/appinfo.json
3===================================================================
4--- .orig/usr/palm/applications/com.palm.app.devmodeswitcher/appinfo.json
5+++ /usr/palm/applications/com.palm.app.devmodeswitcher/appinfo.json
1diff --git a/usr/palm/applications/com.palm.app.devmodeswitcher/appinfo.json b/usr/palm/applications/com.palm.app.devmodeswitcher/appinfo.json
2index 7d9da85..c0f2522 100644
3--- a/usr/palm/applications/com.palm.app.devmodeswitcher/appinfo.json
4+++ b/usr/palm/applications/com.palm.app.devmodeswitcher/appinfo.json
65@@ -5,6 +5,6 @@
76 "id": "com.palm.app.devmodeswitcher",
87 "icon": "icon.png",
98 "noWindow": false,
10- "visible": false
11+ "visible": true
9- "visible": false
10+ "visible": true
1211 }
1312
  
1diff --git a/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js b/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
2index f343ce2..c7f389b 100644
3--- a/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
4+++ b/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
5@@ -1479,7 +1479,7 @@ handlePowerNotifications: function(payload) {
6 this.controller.showBanner({
7 messageText: batteryalert,
8 icon: "/usr/lib/luna/system/luna-systemui/images/notification-small-charging.png",
9- soundClass: soundClassName
10+ soundClass: "vibrate"
11 },null, 'chargingAlert');
12 }
13 this.chargingBannerShown = true;
  
1diff --git a/usr/palm/applications/com.handson.app.nascar/appinfo.json b/usr/palm/applications/com.handson.app.nascar/appinfo.json
2index 1a4252a..3425a00 100644
3--- a/usr/palm/applications/com.handson.app.nascar/appinfo.json
4+++ b/usr/palm/applications/com.handson.app.nascar/appinfo.json
5@@ -6,6 +6,7 @@
6 "icon": "icon.png",
7 "version": "1.14",
8 "vendor": "Hands-On Mobile",
9- "vendorurl": "http://www.handson.com"
10+ "vendorurl": "http://www.handson.com",
11+ "visible": false
12 }
13
  
1diff --git a/usr/palm/applications/com.handson.app.nfl/appinfo.json b/usr/palm/applications/com.handson.app.nfl/appinfo.json
2index 1fca174..3d40d04 100644
3--- a/usr/palm/applications/com.handson.app.nfl/appinfo.json
4+++ b/usr/palm/applications/com.handson.app.nfl/appinfo.json
5@@ -6,6 +6,7 @@
6 "icon": "icon.png",
7 "version": "1.25",
8 "vendor": "Hands-On Mobile",
9- "vendorurl": "http://www.handson.com"
10+ "vendorurl": "http://www.handson.com",
11+ "visible": false
12 }
13
  
1phone-enable-roam-only
2
3Tested-On: 1.1
4
5Index: /usr/palm/applications/com.palm.app.phoneprefs/app/controllers/preflist-assistant.js
6===================================================================
7--- .orig/usr/palm/applications/com.palm.app.phoneprefs/app/controllers/preflist-assistant.js
8+++ /usr/palm/applications/com.palm.app.phoneprefs/app/controllers/preflist-assistant.js
9@@ -223,7 +223,8 @@ var PreflistAssistant = Class.create({
1diff --git a/usr/palm/applications/com.palm.app.phoneprefs/app/controllers/preflist-assistant.js b/usr/palm/applications/com.palm.app.phoneprefs/app/controllers/preflist-assistant.js
2index 4c1b0e2..97610bf 100644
3--- a/usr/palm/applications/com.palm.app.phoneprefs/app/controllers/preflist-assistant.js
4+++ b/usr/palm/applications/com.palm.app.phoneprefs/app/controllers/preflist-assistant.js
5@@ -224,7 +224,8 @@ var PreflistAssistant = Class.create({
106
117 this.voiceRoamingChoices = [
128 {label: this.carrierOnlyLabel,value: "homeonly"},
1212 ],
1313
1414 this.voiceRoamingModel = {
15@@ -1220,6 +1221,11 @@ voiceNumberSetDone: function(payload){
15@@ -1230,6 +1231,11 @@ voiceNumberSetDone: function(payload){
1616 $('dataroamingrow').show();
1717 $('voiceRoamingRow').removeClassName('last');
1818 }
  
1By default, the Pre has no "Roam Only" mode. For fringe Sprint
2service areas, this can be very annoying, as the phone will tend
3to prefer a weak Sprint signal versus a strong Verizon/Other
4CDMA signal.
5
6Tested-On: 1.1
7
8Mod by w5mw
9Patch submitted by JackieRipper
10Index: /usr/palm/applications/com.palm.app.phoneprefs/app/controllers/preflist-assistant.js
11===================================================================
12--- .orig/usr/palm/applications/com.palm.app.phoneprefs/app/controllers/preflist-assistant.js
13+++ /usr/palm/applications/com.palm.app.phoneprefs/app/controllers/preflist-assistant.js
14@@ -223,7 +223,8 @@ var PreflistAssistant = Class.create({
1diff --git a/usr/palm/applications/com.palm.app.phoneprefs/app/controllers/preflist-assistant.js b/usr/palm/applications/com.palm.app.phoneprefs/app/controllers/preflist-assistant.js
2index 4c1b0e2..97610bf 100644
3--- a/usr/palm/applications/com.palm.app.phoneprefs/app/controllers/preflist-assistant.js
4+++ b/usr/palm/applications/com.palm.app.phoneprefs/app/controllers/preflist-assistant.js
5@@ -224,7 +224,8 @@ var PreflistAssistant = Class.create({
156
167 this.voiceRoamingChoices = [
178 {label: this.carrierOnlyLabel,value: "homeonly"},
1212 ],
1313
1414 this.voiceRoamingModel = {
15@@ -1220,6 +1221,11 @@ voiceNumberSetDone: function(payload){
15@@ -1230,6 +1231,11 @@ voiceNumberSetDone: function(payload){
1616 $('dataroamingrow').show();
1717 $('voiceRoamingRow').removeClassName('last');
1818 }
  
1diff --git a/usr/palm/applications/com.mobitv.app.sprinttv/appinfo.json b/usr/palm/applications/com.mobitv.app.sprinttv/appinfo.json
2index 4ff8cbd..67ac3eb 100755
3--- a/usr/palm/applications/com.mobitv.app.sprinttv/appinfo.json
4+++ b/usr/palm/applications/com.mobitv.app.sprinttv/appinfo.json
5@@ -6,5 +6,6 @@
6 "icon": "icon.png",
7 "version": "1.5",
8 "vendor": "Sprint",
9- "vendorurl": "www.sprint.com"
10+ "vendorurl": "www.sprint.com",
11+ "visible": false
12 }
13\ No newline at end of file