[gnome-documents/wip/rishi/split-view: 5/16] windowMode: Mark _setCanFullscreen as private



commit 8ac9d0a4e3e47ef03f70a79fd7fd0eab47b1cd46
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Oct 15 14:58:57 2014 +0200

    windowMode: Mark _setCanFullscreen as private
    
    We are not using it outside this class, and the rest of the
    application should only need getCanFullscreen.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=686461

 src/windowMode.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/windowMode.js b/src/windowMode.js
index f07488c..e76b368 100644
--- a/src/windowMode.js
+++ b/src/windowMode.js
@@ -53,7 +53,7 @@ const ModeController = new Lang.Class({
             return;
 
         let policy = this._canFullscreenPolicy(oldMode);
-        this.setCanFullscreen(policy);
+        this._setCanFullscreen(policy);
 
         // Swap the old and current modes.
         let tmp = oldMode;
@@ -70,7 +70,7 @@ const ModeController = new Lang.Class({
             return;
 
         let policy = this._canFullscreenPolicy(mode);
-        this.setCanFullscreen(policy);
+        this._setCanFullscreen(policy);
 
         this._history.push(oldMode);
         this._mode = mode;
@@ -82,7 +82,7 @@ const ModeController = new Lang.Class({
         return this._mode;
     },
 
-    setCanFullscreen: function(canFullscreen) {
+    _setCanFullscreen: function(canFullscreen) {
         this._canFullscreen = canFullscreen;
 
         if (!this._canFullscreen && this._fullscreen)


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