[sushi/alex-changes: 10/11] Track the currently visible file in the main window



commit ececbacf4a9d2eadf577753d1d032f14158ff2d0
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Apr 29 11:53:59 2011 +0200

    Track the currently visible file in the main window

 src/js/ui/mainWindow.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/js/ui/mainWindow.js b/src/js/ui/mainWindow.js
index f402cc9..477ece2 100644
--- a/src/js/ui/mainWindow.js
+++ b/src/js/ui/mainWindow.js
@@ -33,6 +33,7 @@ MainWindow.prototype = {
         this._createClutterEmbed();
 
         this._connectStageSignals();
+	this.file = null;
     },
 
     _createGtkWindow : function() {
@@ -582,6 +583,7 @@ MainWindow.prototype = {
     },
 
     setFile : function(file) {
+	this.file = file;
         this._createAlphaBackground();
         this._createRenderer(file);
         this._createTexture(file);



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