[nautilus/wip/corey/fix-sort: 3/4] list-view: Add column to our hash table before appending to list




commit b952acaa6396868ee366303655170b6aa384572b
Author: Corey Berla <corey berla me>
Date:   Tue Sep 27 15:33:21 2022 -0700

    list-view: Add column to our hash table before appending to list
    
    If we don't have the column in the hash table, setup_xxx_cell()
    may not be able to create the cell.

 src/nautilus-list-view.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index 696077d0f..a900a8537 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -1103,11 +1103,11 @@ setup_view_columns (NautilusListView *self)
             g_signal_connect (factory, "setup", G_CALLBACK (setup_label_cell), self);
         }
 
-        gtk_column_view_append_column (self->view_ui, view_column);
-
         g_hash_table_insert (self->factory_to_column_map,
                              factory,
                              g_object_ref (nautilus_column));
+
+        gtk_column_view_append_column (self->view_ui, view_column);
     }
 }
 


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