[gnome-documents] views: update for style change
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] views: update for style change
- Date: Wed, 20 Feb 2013 01:28:23 +0000 (UTC)
commit 365c659641e4db9ca53c3ebef5c658a5d969b70f
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Feb 19 19:05:39 2013 -0500
views: update for style change
The header bar itself renders the stroke, so there's no need for our
scrolled windows to keep a shadow.
src/edit.js | 3 +--
src/preview.js | 3 +--
src/view.js | 2 +-
3 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/edit.js b/src/edit.js
index dce1c11..36ec372 100644
--- a/src/edit.js
+++ b/src/edit.js
@@ -50,8 +50,7 @@ const EditView = new Lang.Class({
this.widget = new Gtk.Overlay();
this._scrolledWindow = new Gtk.ScrolledWindow({ hexpand: true,
- vexpand: true,
- shadow_type: Gtk.ShadowType.IN });
+ vexpand: true });
this.widget.get_style_context().add_class('documents-scrolledwin');
this.widget.add(this._scrolledWindow);
diff --git a/src/preview.js b/src/preview.js
index c9c584d..2db7755 100644
--- a/src/preview.js
+++ b/src/preview.js
@@ -66,8 +66,7 @@ const PreviewView = new Lang.Class({
this._onWindowModeChanged));
this.widget = new Gtk.ScrolledWindow({ hexpand: true,
- vexpand: true,
- shadow_type: Gtk.ShadowType.IN });
+ vexpand: true });
this.widget.get_style_context().add_class('documents-scrolledwin');
this.widget.get_hscrollbar().connect('button-press-event', Lang.bind(this, this._onScrollbarClick));
this.widget.get_vscrollbar().connect('button-press-event', Lang.bind(this, this._onScrollbarClick));
diff --git a/src/view.js b/src/view.js
index e6ffd46..b46a5e0 100644
--- a/src/view.js
+++ b/src/view.js
@@ -187,7 +187,7 @@ const ViewContainer = new Lang.Class({
this._model = new ViewModel();
this.widget = new Gtk.Grid({ orientation: Gtk.Orientation.VERTICAL });
- this.view = new Gd.MainView();
+ this.view = new Gd.MainView({ shadow_type: Gtk.ShadowType.NONE });
this.widget.add(this.view);
this._loadMore = new LoadMoreButton();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]