location: Rename _onGeoclueAppeared to _connectToGeoclue
Rename _onGeoclueAppeared to _connectToGeoclue as in the following patch we'll call it from other contexts then geoclue appearing. https://bugzilla.gnome.org/show_bug.cgi?id=723684
This commit is contained in:
parent
7826fb4f04
commit
e70e4a21f2
@ -27,7 +27,7 @@ const Indicator = new Lang.Class({
|
|||||||
this._watchId = Gio.bus_watch_name(Gio.BusType.SYSTEM,
|
this._watchId = Gio.bus_watch_name(Gio.BusType.SYSTEM,
|
||||||
'org.freedesktop.GeoClue2',
|
'org.freedesktop.GeoClue2',
|
||||||
0,
|
0,
|
||||||
Lang.bind(this, this._onGeoclueAppeared),
|
Lang.bind(this, this._connectToGeoclue),
|
||||||
Lang.bind(this, this._onGeoclueVanished));
|
Lang.bind(this, this._onGeoclueVanished));
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ const Indicator = new Lang.Class({
|
|||||||
this._indicator.visible = this._proxy.InUse;
|
this._indicator.visible = this._proxy.InUse;
|
||||||
},
|
},
|
||||||
|
|
||||||
_onGeoclueAppeared: function() {
|
_connectToGeoclue: function() {
|
||||||
new GeoclueManager(Gio.DBus.system,
|
new GeoclueManager(Gio.DBus.system,
|
||||||
'org.freedesktop.GeoClue2',
|
'org.freedesktop.GeoClue2',
|
||||||
'/org/freedesktop/GeoClue2/Manager',
|
'/org/freedesktop/GeoClue2/Manager',
|
||||||
|
Loading…
Reference in New Issue
Block a user