[polari] roomStack: Don't show entry area with placeholder



commit 3f9eea26f2bb04d60a2fe23ea677967ce17b98c7
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Jan 20 03:25:57 2016 +0100

    roomStack: Don't show entry area with placeholder
    
    With a visually distinct entry area, showing an insensitive entry with the
    placeholder helped reducing the visual noise during transitions.
    However now that the entry area appears as part of the chat log, it makes
    more sense to not show an entry when there is no chat log.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=760872

 src/roomStack.js |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/roomStack.js b/src/roomStack.js
index f452824..bd5180f 100644
--- a/src/roomStack.js
+++ b/src/roomStack.js
@@ -94,7 +94,7 @@ const ChatPlaceholder = new Lang.Class({
             }));
 
         this.widget = new Gtk.Grid({ column_homogeneous: true, can_focus: false,
-                                     column_spacing: 18, vexpand: true,
+                                     column_spacing: 18, hexpand: true, vexpand: true,
                                      valign: Gtk.Align.CENTER });
         this.widget.get_style_context().add_class('polari-background');
         this.widget.attach(image, 0, 0, 1, 1);
@@ -142,8 +142,9 @@ const RoomView = new Lang.Class({
         this.widget = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL });
         this.widget.add(this._view.widget);
 
-        this.inputWidget = new EntryArea.EntryArea({ room: room,
-                                                     sensitive: false });
+        this.inputWidget = room ? new EntryArea.EntryArea({ room: room,
+                                                            sensitive: false })
+                                : new Gtk.Box();
         this.widget.add(this.inputWidget);
 
         this.widget.show_all();


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