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




commit 94397ce2d49c2bf193fa812af944d28399c7deb9
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 b9b82a654..840698333 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -1077,11 +1077,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]