location: Replace description w/ privacy note

https://bugzilla.gnome.org/show_bug.cgi?id=762480
This commit is contained in:
Zeeshan Ali (Khattak) 2016-03-03 18:57:02 +00:00
parent fceac27412
commit 64741e41df

View File

@ -417,12 +417,12 @@ const GeolocationDialog = new Lang.Class({
this._title = new St.Label({ style_class: 'geolocation-dialog-title headline' }); this._title = new St.Label({ style_class: 'geolocation-dialog-title headline' });
messageBox.add_actor(this._title); messageBox.add_actor(this._title);
this._desc = new St.Label();
messageBox.add_actor(this._desc);
this._reason = new St.Label(); this._reason = new St.Label();
messageBox.add_actor(this._reason); messageBox.add_actor(this._reason);
this._privacyNote = new St.Label();
messageBox.add_actor(this._privacyNote);
let button = this.addButton({ label: _("Deny Access"), let button = this.addButton({ label: _("Deny Access"),
action: Lang.bind(this, this._onDenyClicked), action: Lang.bind(this, this._onDenyClicked),
key: Clutter.KEY_Escape }); key: Clutter.KEY_Escape });
@ -434,8 +434,7 @@ const GeolocationDialog = new Lang.Class({
/* Translators: %s is an application name */ /* Translators: %s is an application name */
this._title.text = _("Give %s access to your location?").format(name); this._title.text = _("Give %s access to your location?").format(name);
/* Translators: %s is an application name */ this._privacyNote.text = _("Location access can be changed at any time from the privacy settings.");
this._desc.text = _("%s is requesting access to your location.").format(name);
if (reason) if (reason)
this._reason.text = reason; this._reason.text = reason;