[gnome-maps/wip/osrm-routing] Sidebar: remove unused mapView reference
- From: Mattias Bengtsson <mattiasb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/osrm-routing] Sidebar: remove unused mapView reference
- Date: Thu, 13 Jun 2013 02:33:05 +0000 (UTC)
commit 1745ffb5efc63ef2540ac76aa3265f053424f718
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date: Thu Jun 13 04:23:24 2013 +0200
Sidebar: remove unused mapView reference
Remove unused mapView reference
src/mapView.js | 2 +-
src/sidebar.js | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/mapView.js b/src/mapView.js
index 068e29e..25e9240 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -64,7 +64,7 @@ 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._sidebar = new Sidebar.Sidebar(this);
+ this._sidebar = new Sidebar.Sidebar();
// Don't show sidebar until it has something in it
//this.view.add_child(this._sidebar.actor);
diff --git a/src/sidebar.js b/src/sidebar.js
index 6567104..b90ff62 100644
--- a/src/sidebar.js
+++ b/src/sidebar.js
@@ -39,8 +39,7 @@ const _ = imports.gettext.gettext;
const Sidebar = new Lang.Class({
Name: 'Sidebar',
- _init: function(mapView) {
- this._mapView = mapView;
+ _init: function() {
this.actor = new Clutter.Actor({ layout_manager: new Clutter.BoxLayout({ spacing: 12 }),
y_expand: true,
x_align: Clutter.ActorAlign.END });
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]