[gnome-maps/wip/layers-popover: 2/6] Disable layer menu selected row focus, for now.



commit b687db9a5f5e6b4cc61e93566131172b199af8f3
Author: Dario Di Nucci <linkin88mail gmail com>
Date:   Sat Mar 1 20:25:16 2014 +0100

    Disable layer menu selected row focus, for now.

 src/layers-popup.ui |    2 +-
 src/layersPopup.js  |    8 +++-----
 2 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/layers-popup.ui b/src/layers-popup.ui
index cd2257c..ed9b067 100644
--- a/src/layers-popup.ui
+++ b/src/layers-popup.ui
@@ -4,7 +4,7 @@
   <object class="GtkListBox" id="list-box">
     <property name="visible">True</property>
     <property name="can_focus">False</property>
-    <property name="selection-mode">GTK_SELECTION_BROWSE</property>
+    <property name="selection-mode">GTK_SELECTION_NONE</property>
     <child>
       <object class="GtkListBoxRow" id="street-layer-button-row">
         <property name="visible">True</property>
diff --git a/src/layersPopup.js b/src/layersPopup.js
index f19cc83..7fa3e61 100644
--- a/src/layersPopup.js
+++ b/src/layersPopup.js
@@ -54,11 +54,9 @@ const LayersPopup = new Lang.Class({
         this._satelliteLayerButtonRow = ui.satelliteLayerButtonRow;
         this._satelliteLayerButton = ui.satelliteLayerButton;
         
-        this._satelliteLayerButton.connect('clicked',  (function (){
-                gtk_list_box_select_row(this._listBox, this._satelliteLayerButtonRow);
-        }));
-
-        //this.height_request = 300;
+        //this._satelliteLayerButton.connect('clicked',  (function (){
+        //        gtk_list_box_select_row(this._listBox, this._satelliteLayerButtonRow);
+        //}));
 
         this.parent({ relative_to: relativeTo,
                       width_request: 200,


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