[gnome-maps] SearchPopup: Add separator to list



commit d3efb4a0e6fc32476256d6111f7a80d728671194
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Fri Nov 21 06:16:52 2014 -0500

    SearchPopup: Add separator to list

 src/searchPopup.js |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/searchPopup.js b/src/searchPopup.js
index d793726..a35e337 100644
--- a/src/searchPopup.js
+++ b/src/searchPopup.js
@@ -99,6 +99,14 @@ const SearchPopup = new Lang.Class({
                 this.emit('selected', row.place);
         }).bind(this));
 
+        this._list.set_header_func(function(row, before) {
+            let header = new Gtk.Separator();
+            if (before)
+                row.set_header(header);
+            else
+                row.set_header(null);
+        });
+
         this._scrolledWindow.min_content_height = numVisible * _ROW_HEIGHT;
     },
 


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