[gnome-documents] window: hookup the fullscreen motion handler also for the window
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] window: hookup the fullscreen motion handler also for the window
- Date: Fri, 2 Sep 2011 23:17:01 +0000 (UTC)
commit 79c5621b9ee8133c2ac07df88e87c5ecc4aabdee
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Sep 2 19:12:55 2011 -0400
window: hookup the fullscreen motion handler also for the window
To fade in the toolbar when we're fullscreen and showing a spinner.
src/mainWindow.js | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 90f9a66..d7c1674 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -87,6 +87,8 @@ MainWindow.prototype = {
Lang.bind(this, this._onDeleteEvent));
this.window.connect('key-press-event',
Lang.bind(this, this._onKeyPressEvent));
+ this.window.connect('motion-notify-event',
+ Lang.bind(this, this._fullscreenMotionHandler));
Global.settings.connect('changed::list-view',
Lang.bind(this, this._refreshViewSettings));
@@ -372,7 +374,7 @@ MainWindow.prototype = {
this._preview.widget.connect('button-press-event',
Lang.bind(this, this._onPreviewButtonPressEvent));
this._preview.widget.connect('motion-notify-event',
- Lang.bind(this, this._onPreviewMotionNotifyEvent));
+ Lang.bind(this, this._fullscreenMotionHandler));
this._scrolledWin.add(this._preview.widget);
},
@@ -389,7 +391,7 @@ MainWindow.prototype = {
return false;
},
- _onPreviewMotionNotifyEvent: function(widget, event) {
+ _fullscreenMotionHandler: function(widget, event) {
if (!this._fullscreen)
return false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]