[gnome-maps] searchPopup: Sync column numbers with placeStore



commit 56a105c1f1b667545cf6f2512e17ef3e8f6c2c45
Author: Jonas Danielsson <jonas danielsson threetimestwo org>
Date:   Thu Oct 30 04:23:20 2014 -0400

    searchPopup: Sync column numbers with placeStore
    
    This is needed to be able to use the placeStore model
    in the searchPopup tree view.

 src/searchPopup.js |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/searchPopup.js b/src/searchPopup.js
index 753eb6b..f7c8843 100644
--- a/src/searchPopup.js
+++ b/src/searchPopup.js
@@ -28,8 +28,8 @@ const Utils = imports.utils;
 
 const Columns = {
     ICON:         0,
-    DESCRIPTION:  1,
-    PLACE:        2
+    PLACE:        1,
+    DESCRIPTION:  2
 };
 
 const _PLACE_ICON_SIZE = 20;
@@ -57,8 +57,8 @@ const SearchPopup = new Lang.Class({
 
         let model = new Gtk.ListStore();
         model.set_column_types([GdkPixbuf.Pixbuf,
-                                GObject.TYPE_STRING,
-                                GObject.TYPE_OBJECT]);
+                                GObject.TYPE_OBJECT,
+                                GObject.TYPE_STRING]);
         this._treeView.model = model;
 
         this._treeView.connect('row-activated',


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