[gnome-maps] osmEdit: Disable editing for contacts
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] osmEdit: Disable editing for contacts
- Date: Sun, 10 Jan 2016 18:24:06 +0000 (UTC)
commit bf66c74a5f53c90b4eeb1a8bb40fa5e841cfa75e
Author: Alex Anthony <alex anthony28991 gmail com>
Date: Sun Jan 10 11:53:57 2016 +0000
osmEdit: Disable editing for contacts
Don't show the edit button on contact place marker bubbles
https://bugzilla.gnome.org/show_bug.cgi?id=760255
src/placeBubble.js | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/placeBubble.js b/src/placeBubble.js
index be1c40c..8fd4279 100644
--- a/src/placeBubble.js
+++ b/src/placeBubble.js
@@ -87,7 +87,10 @@ const PlaceBubble = new Lang.Class({
}
this.content.add(this._stack);
- this._initEditButton(this._editButton);
+ if (this.place instanceof ContactPlace.ContactPlace)
+ this._editButton.visible = false;
+ else
+ this._initEditButton(this._editButton);
},
_formatWikiLink: function(wiki) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]