[gnome-maps] placeEntry: Add 'loupe' property



commit 1cafcc47aed24dc64996375737deac36e8743439
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Mon Sep 1 20:07:10 2014 +0200

    placeEntry: Add 'loupe' property
    
    Add a property that controls whether to show the loupe
    icon in the GtkSearchEntry or not.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=733554

 src/placeEntry.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/placeEntry.js b/src/placeEntry.js
index c2202cf..ebe782b 100644
--- a/src/placeEntry.js
+++ b/src/placeEntry.js
@@ -61,6 +61,10 @@ const PlaceEntry = new Lang.Class({
         this._mapView = props.mapView;
         delete props.mapView;
 
+        if (!props.loupe)
+            props.primary_icon_name = null;
+        delete props.loupe;
+
         props.completion = this._createCompletion();
         this.parent(props);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]