[gnome-maps/wip/favorites: 8/8] SearchResultBubble: Add favorite button
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/favorites: 8/8] SearchResultBubble: Add favorite button
- Date: Sat, 22 Nov 2014 20:16:46 +0000 (UTC)
commit 1892487f1401129b4d1ac1505dd5ffbb4f302d84
Author: Jonas Danielsson <jonas threetimestwo org>
Date: Sat Nov 22 20:18:11 2014 +0100
SearchResultBubble: Add favorite button
https://bugzilla.gnome.org/show_bug.cgi?id=722102
src/searchResultBubble.js | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/searchResultBubble.js b/src/searchResultBubble.js
index 6c099f2..b70bc3c 100644
--- a/src/searchResultBubble.js
+++ b/src/searchResultBubble.js
@@ -30,6 +30,7 @@ const MapBubble = imports.mapBubble;
const Overpass = imports.overpass;
const Place = imports.place;
const PlaceFormatter = imports.placeFormatter;
+const PlaceStore = imports.placeStore;
const Utils = imports.utils;
const SearchResultBubble = new Lang.Class({
@@ -40,7 +41,10 @@ const SearchResultBubble = new Lang.Class({
let ui = Utils.getUIObject('search-result-bubble', [ 'stack',
'box-content',
'label-title']);
- params.buttons = MapBubble.Button.ROUTE | MapBubble.Button.SHARE;
+ params.buttons = (MapBubble.Button.ROUTE |
+ MapBubble.Button.SHARE |
+ MapBubble.Button.FAVORITE);
+
this.parent(params);
Utils.load_icon(this.place.icon, 48, (function(pixbuf) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]