[gnome-shell] location: Rename _setAccuracy to setMaxAccuracyLevel
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] location: Rename _setAccuracy to setMaxAccuracyLevel
- Date: Mon, 17 Feb 2014 12:07:53 +0000 (UTC)
commit aa45999824c8b1aec1cc7c2e6172ea4e7be3197d
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sun Feb 16 13:53:29 2014 +0000
location: Rename _setAccuracy to setMaxAccuracyLevel
More descriptive name to avoid any confusion.
https://bugzilla.gnome.org/show_bug.cgi?id=723684
js/ui/status/location.js | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/status/location.js b/js/ui/status/location.js
index fb78b15..7a872bb 100644
--- a/js/ui/status/location.js
+++ b/js/ui/status/location.js
@@ -74,7 +74,7 @@ const Indicator = new Lang.Class({
// If user set the max accuracy level, don't let geoclue override
return;
- this._setAccuracy (value, false);
+ this._setMaxAccuracyLevel (value, false);
},
// We (and geoclue) have currently no way to reliably identifying apps so
@@ -145,12 +145,12 @@ const Indicator = new Lang.Class({
_onOnOffAction: function() {
if (this._maxAccuracyLevel == 0)
- this._setAccuracy (this._availableAccuracyLevel, true);
+ this._setMaxAccuracyLevel (this._availableAccuracyLevel, true);
else
- this._setAccuracy (0, true);
+ this._setMaxAccuracyLevel (0, true);
},
- _setAccuracy: function(maxAccuracyLevel, userSet) {
+ _setMaxAccuracyLevel: function(maxAccuracyLevel, userSet) {
this._maxAccuracyLevel = maxAccuracyLevel;
if (this._maxAccuracyLevel == 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]