[polari] roomList: Don't focus room rows when clicked



commit 56f0f9ac97e4d084244d4060dc93bc308d8222ec
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Oct 23 22:51:58 2015 +0200

    roomList: Don't focus room rows when clicked
    
    When switching to a room by clicking the corresponding row, it is
    much more likely that the user wants to take part in the room's
    conversation than using keynav to navigate the room list. So don't
    steal focus from the entry by setting GtkWidget:focus-on-click
    appropriately.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=756323

 src/roomList.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/roomList.js b/src/roomList.js
index a7e2d1b..4a9d68e 100644
--- a/src/roomList.js
+++ b/src/roomList.js
@@ -120,7 +120,8 @@ const RoomRow = new Lang.Class({
     },
 
     _createWidget: function(gicon) {
-        this.widget = new Gtk.ListBoxRow({ margin_bottom: 4 });
+        this.widget = new Gtk.ListBoxRow({ margin_bottom: 4,
+                                           focus_on_click: false });
 
         this._eventBox = new Gtk.EventBox();
         this.widget.add(this._eventBox);


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