[gnome-maps] Rename Properties class to Sidebar



commit 6fe04e1776abf86a72464177783472d979b47bf5
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date:   Thu Apr 25 00:07:06 2013 +0200

    Rename Properties class to Sidebar
    
    Rename Properties class to Sidebar as it's not about changing map
    properties anymore really. The idea is to use it for results from routing
    searches and similar later on, so let's keep it around.

 src/Makefile-js.am                |    2 +-
 src/mapView.js                    |    6 +++---
 src/{properties.js => sidebar.js} |   30 +++++++++++++++---------------
 3 files changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/src/Makefile-js.am b/src/Makefile-js.am
index 2fe2c1c..778fc34 100644
--- a/src/Makefile-js.am
+++ b/src/Makefile-js.am
@@ -6,7 +6,7 @@ dist_js_DATA = \
     mapLocation.js \
     mapView.js \
     path.js \
-    properties.js \
+    sidebar.js \
     utils.js \
     userLocation.js
 
diff --git a/src/mapView.js b/src/mapView.js
index 0841689..f69bcec 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -35,7 +35,7 @@ const Mainloop = imports.mainloop;
 const Signals = imports.signals;
 
 const Application = imports.application;
-const Properties = imports.properties;
+const Sidebar = imports.sidebar;
 const Utils = imports.utils;
 const Path = imports.path;
 const MapLocation = imports.mapLocation;
@@ -63,8 +63,8 @@ const MapView = new Lang.Class({
         this.view.connect('notify::latitude', Lang.bind(this, this._onViewMoved));
         this.view.connect('notify::longitude', Lang.bind(this, this._onViewMoved));
 
-        this._properties = new Properties.Properties(this);
-        this.view.add_child(this._properties.actor);
+        this._sidebar = new Sidebar.Sidebar(this);
+        this.view.add_child(this._sidebar.actor);
 
         this._markerLayer = new Champlain.MarkerLayer();
         this._markerLayer.set_selection_mode(Champlain.SelectionMode.SINGLE);
diff --git a/src/properties.js b/src/sidebar.js
similarity index 78%
rename from src/properties.js
rename to src/sidebar.js
index 3da9d64..6567104 100644
--- a/src/properties.js
+++ b/src/sidebar.js
@@ -36,8 +36,8 @@ const Mainloop = imports.mainloop;
 const Utils = imports.utils;
 const _ = imports.gettext.gettext;
 
-const Properties = new Lang.Class({
-    Name: 'Properties',
+const Sidebar = new Lang.Class({
+    Name: 'Sidebar',
 
     _init: function(mapView) {
         this._mapView = mapView;
@@ -52,21 +52,21 @@ const Properties = new Lang.Class({
         revealButton.show();
 
         // then the sidebar itself, packed into the revealer
-        let propsGrid = new Gtk.Grid({ vexpand: true,
-                                       hexpand: true,
-                                       margin_top: 32,
-                                       margin_left: 32,
-                                       margin_right: 32,
-                                       row_spacing: 15,
-                                       orientation: Gtk.Orientation.VERTICAL,
-                                       valign: Gtk.Align.FILL });
+        let grid = new Gtk.Grid({ vexpand: true,
+                                  hexpand: true,
+                                  margin_top: 32,
+                                  margin_left: 32,
+                                  margin_right: 32,
+                                  row_spacing: 15,
+                                  orientation: Gtk.Orientation.VERTICAL,
+                                  valign: Gtk.Align.FILL });
 
-        let propsContainer = new Gtk.Frame({ child: propsGrid,
-                                             shadow_type: Gtk.ShadowType.IN,
-                                             width_request: 200 });
-        propsContainer.get_style_context().add_class('maps-sidebar');
+        let container = new Gtk.Frame({ child: grid,
+                                        shadow_type: Gtk.ShadowType.IN,
+                                        width_request: 200 });
+        container.get_style_context().add_class('maps-sidebar');
 
-        let revealer = new Gd.Revealer({ child: propsContainer,
+        let revealer = new Gd.Revealer({ child: container,
                                          reveal_child: false,
                                          orientation: Gtk.Orientation.VERTICAL });
         revealer.show_all();


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