[sushi/wip/cosimoc/no-clutter: 35/66] mainWindow: rename createTexture->createView
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi/wip/cosimoc/no-clutter: 35/66] mainWindow: rename createTexture->createView
- Date: Sat, 8 Jun 2019 18:43:05 +0000 (UTC)
commit 3547df166ed9878effa2d64e18967ccb3667e8e4
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 file changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/src/js/ui/mainWindow.js b/src/js/ui/mainWindow.js
index 6f8c8e4..ffaf619 100644
--- a/src/js/ui/mainWindow.js
+++ b/src/js/ui/mainWindow.js
@@ -63,7 +63,7 @@ var 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;
@@ -220,21 +220,21 @@ var 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();
},
@@ -318,7 +318,7 @@ var 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]