[gnome-documents] embed: unconditionally create the Preview page
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] embed: unconditionally create the Preview page
- Date: Tue, 26 Jun 2012 17:45:28 +0000 (UTC)
commit 69276904339ddb818347e48a7374325bc508c241
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Jun 26 13:36:04 2012 -0400
embed: unconditionally create the Preview page
src/embed.js | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/embed.js b/src/embed.js
index a063055..90f622c 100644
--- a/src/embed.js
+++ b/src/embed.js
@@ -115,6 +115,9 @@ const Embed = new Lang.Class({
this._view = new View.ViewContainer();
this._viewPage = this._notebook.append_page(this._view.widget, null);
+ this._preview = new Preview.PreviewView();
+ this._previewPage = this._notebook.append_page(this._preview.widget, null);
+
Global.errorHandler.connect('load-error',
Lang.bind(this, this._onLoadError));
@@ -245,11 +248,6 @@ const Embed = new Lang.Class({
this._queryErrorId = 0;
}
- if (!this._preview) {
- this._preview = new Preview.PreviewView();
- this._previewPage = this._notebook.append_page(this._preview.widget, null);
- }
-
this._notebook.set_current_page(this._previewPage);
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]