[gnome-maps] mainWindow: Toggle sidebar on routeVisible
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] mainWindow: Toggle sidebar on routeVisible
- Date: Wed, 2 Mar 2016 08:44:56 +0000 (UTC)
commit 981dd98209fb979062692b22d66454688e68e351
Author: Jonas Danielsson <jonas threetimestwo org>
Date: Mon Feb 29 20:37:11 2016 +0100
mainWindow: Toggle sidebar on routeVisible
https://bugzilla.gnome.org/show_bug.cgi?id=762869
src/mainWindow.js | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 84f4c80..dd28a8e 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -136,9 +136,10 @@ const MainWindow = new Lang.Class({
let sidebar = new Sidebar.Sidebar(this._mapView);
Application.routeService.query.connect('notify',
this._setRevealSidebar.bind(this, true));
- sidebar.bind_property('reveal-child',
- this._mapView, 'routeVisible',
- GObject.BindingFlags.BIDIRECTIONAL);
+
+ this._toggleSidebarButton.bind_property('active',
+ this._mapView, 'routeVisible',
+ GObject.BindingFlags.BIDIRECTIONAL);
this.application.bind_property('connected',
sidebar, 'visible',
GObject.BindingFlags.DEFAULT);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]