[polari] chatView: Minor cleanup



commit 1c622a7ce86294fc580f4e7122156065eb195a74
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Sep 10 15:58:33 2014 +0200

    chatView: Minor cleanup
    
    Less code, and using an inherited property makes this accessible
    from Gtk Inspector ...

 src/chatView.js |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/chatView.js b/src/chatView.js
index 2d8a082..6fa3015 100644
--- a/src/chatView.js
+++ b/src/chatView.js
@@ -224,11 +224,8 @@ const ChatView = new Lang.Class({
 
         this._view = new TextView({ editable: false, cursor_visible: false,
                                     visible: true,
-                                    wrap_mode: Gtk.WrapMode.WORD_CHAR });
-        this._view.set_border_window_size(Gtk.TextWindowType.TOP, 6);
-        this._view.set_border_window_size(Gtk.TextWindowType.BOTTOM, 6);
-        this._view.set_border_window_size(Gtk.TextWindowType.LEFT, 6);
-        this._view.set_border_window_size(Gtk.TextWindowType.RIGHT, 6);
+                                    wrap_mode: Gtk.WrapMode.WORD_CHAR,
+                                    border_width: 6 });
 
         this.widget.add(this._view);
         this.widget.show_all();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]