[sushi/wip/cosimoc/no-clutter] mainWindow: rename createTexture->createView
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi/wip/cosimoc/no-clutter] mainWindow: rename createTexture->createView
- Date: Sun, 9 Apr 2017 05:08:41 +0000 (UTC)
commit 48b56e40c013477799a386f354218da00f11fdf1
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sat Apr 8 21:17:25 2017 -0700
mainWindow: rename createTexture->createView
We don't create a texture anymore.
src/js/ui/mainWindow.js | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/src/js/ui/mainWindow.js b/src/js/ui/mainWindow.js
index 606bdc4..5ab8275 100644
--- a/src/js/ui/mainWindow.js
+++ b/src/js/ui/mainWindow.js
@@ -74,7 +74,7 @@ const MainWindow = new Lang.Class({
this._isFullScreen = false;
this._pendingRenderer = null;
this._renderer = null;
- this._texture = null;
+ this._view = null;
this._toolbar = null;
this._toolbarId = 0;
this.file = null;
@@ -229,21 +229,21 @@ const MainWindow = new Lang.Class({
this._pendingRenderer = null;
/* generate the texture and toolbar for the new renderer */
- this._createTexture();
+ this._createView();
this._createToolbar();
},
- _createTexture : function() {
- if (this._texture) {
- this._texture.destroy();
- this._texture = null;
+ _createView : function() {
+ if (this._view) {
+ this._view.destroy();
+ this._view = null;
}
- this._texture = this._renderer.render();
- this._texture.expand = true;
- this._texture.show();
+ this._view = this._renderer.render();
+ this._view.expand = true;
+ this._view.show();
- this._embed.add(this._texture);
+ this._embed.add(this._view);
this._resizeWindow();
},
@@ -327,7 +327,7 @@ const MainWindow = new Lang.Class({
setFile : function(file) {
this.file = file;
this._createRenderer(file);
- this._createTexture();
+ this._createView();
this._createToolbar();
this.show_all();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]