[gnome-maps] osmEditDialog: Avoid adding an extra separator in recent types list



commit 359d44e369b2b705b826dd9adcf11483573d045c
Author: Marcus Lundblad <ml update uu se>
Date:   Wed May 25 21:17:51 2016 +0200

    osmEditDialog: Avoid adding an extra separator in recent types list
    
    Don't add a separator before the first item in the recent types list when setting
    a type for a POI.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=766881

 src/osmEditDialog.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/osmEditDialog.js b/src/osmEditDialog.js
index 556e495..6447469 100644
--- a/src/osmEditDialog.js
+++ b/src/osmEditDialog.js
@@ -310,7 +310,8 @@ const OSMEditDialog = new Lang.Class({
         this._updateRecentTypesList();
 
         this._recentTypesListBox.set_header_func(function (row, previous) {
-            row.set_header(new Gtk.Separator());
+            if (previous)
+                row.set_header(new Gtk.Separator());
         });
 
         this._recentTypesListBox.connect('row-activated', (function(listbox, row) {


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