[gnome-documents] view: Remove unecessary GtkGrid
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] view: Remove unecessary GtkGrid
- Date: Sat, 5 Dec 2015 18:23:09 +0000 (UTC)
commit 22b4f501590df54922cffa1dba90daa52a942ad5
Author: Alessandro Bono <abono gnome org>
Date: Wed Sep 30 20:11:59 2015 +0200
view: Remove unecessary GtkGrid
https://bugzilla.gnome.org/show_bug.cgi?id=756014
src/view.js | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/view.js b/src/view.js
index 9eecde6..ab928a8 100644
--- a/src/view.js
+++ b/src/view.js
@@ -331,8 +331,8 @@ const ViewContainer = new Lang.Class({
this.parent({ homogeneous: true,
transition_type: Gtk.StackTransitionType.CROSSFADE });
- let grid = new Gtk.Grid({ orientation: Gtk.Orientation.VERTICAL });
- this.add_named(grid, 'view');
+ this.view = new Gd.MainView({ shadow_type: Gtk.ShadowType.NONE });
+ this.add_named(this.view, 'view');
this._noResults = new EmptyResultsBox();
this.add_named(this._noResults, 'no-results');
@@ -340,9 +340,6 @@ const ViewContainer = new Lang.Class({
this._errorBox = new ErrorBox.ErrorBox();
this.add_named(this._errorBox, 'error');
- this.view = new Gd.MainView({ shadow_type: Gtk.ShadowType.NONE });
- grid.add(this.view);
-
this.show_all();
this.set_visible_child_full('view', Gtk.StackTransitionType.NONE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]