[gnome-maps/wip/favorites: 9/9] SearchResultBubble: Add favorite button
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/favorites: 9/9] SearchResultBubble: Add favorite button
- Date: Sat, 22 Nov 2014 12:42:49 +0000 (UTC)
commit 3f4458f7e2dddbbc4e1d0c01fd3947e9e86354f8
Author: Jonas Danielsson <jonas threetimestwo org>
Date: Sat Nov 22 00:57:12 2014 +0100
SearchResultBubble: Add favorite button
https://bugzilla.gnome.org/show_bug.cgi?id=722102
src/mainWindow.js | 8 --------
src/searchResultBubble.js | 6 +++++-
2 files changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index b1a91e7..10c1896 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -197,14 +197,6 @@ const MainWindow = new Lang.Class({
this._headerBar.custom_title = this._placeEntry;
this._placeEntry.has_focus = true;
- this._favoritesButton.popover.connect('rows-changed', (function() {
- if (this._favoritesButton.popover.rows > 0)
- this._favoritesButton.sensitive = true;
- else
- this._favoritesButton.sensitive = false;
- }).bind(this));
-
-
let app = this.window.application;
app.bind_property('connected',
this._gotoUserLocationButton, 'sensitive',
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]