diff options
author | António Fernandes <antoniof@gnome.org> | 2022-06-10 19:44:39 +0100 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2022-06-21 19:55:01 +0100 |
commit | 18d24be0b0beac53b0d0f3cca8eeea0c0067a6d6 (patch) | |
tree | 40e7d0873e831752de91085fbc298ef5e88d9981 /src/nautilus-grid-view.c | |
parent | 97666e4aa0ab1fda02d96f88bf71405e17cafdd3 (diff) | |
download | nautilus-18d24be0b0beac53b0d0f3cca8eeea0c0067a6d6.tar.gz |
view-item-model: Rename to NautilusViewItem
This is both shorter and more aligned with the convention to call
GListModel elements "item".
Also add missing copyright notices with SPDX licence id.
Diffstat (limited to 'src/nautilus-grid-view.c')
-rw-r--r-- | src/nautilus-grid-view.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/nautilus-grid-view.c b/src/nautilus-grid-view.c index d4ab61d6a..dd263ac5a 100644 --- a/src/nautilus-grid-view.c +++ b/src/nautilus-grid-view.c @@ -40,8 +40,8 @@ nautilus_grid_view_sort (gconstpointer a, NautilusFile *file_a; NautilusFile *file_b; - file_a = nautilus_view_item_model_get_file (NAUTILUS_VIEW_ITEM_MODEL ((gpointer) a)); - file_b = nautilus_view_item_model_get_file (NAUTILUS_VIEW_ITEM_MODEL ((gpointer) b)); + file_a = nautilus_view_item_get_file (NAUTILUS_VIEW_ITEM ((gpointer) a)); + file_b = nautilus_view_item_get_file (NAUTILUS_VIEW_ITEM ((gpointer) b)); return nautilus_file_compare_for_sort (file_a, file_b, self->sort_type, @@ -349,12 +349,12 @@ bind_cell (GtkSignalListItemFactory *factory, gpointer user_data) { GtkWidget *cell; - NautilusViewItemModel *item_model; + NautilusViewItem *item; cell = gtk_list_item_get_child (listitem); - item_model = NAUTILUS_VIEW_ITEM_MODEL (gtk_list_item_get_item (listitem)); + item = NAUTILUS_VIEW_ITEM (gtk_list_item_get_item (listitem)); - nautilus_view_item_model_set_item_ui (item_model, cell); + nautilus_view_item_set_item_ui (item, cell); if (nautilus_view_cell_once (NAUTILUS_VIEW_CELL (cell))) { @@ -378,11 +378,11 @@ unbind_cell (GtkSignalListItemFactory *factory, GtkListItem *listitem, gpointer user_data) { - NautilusViewItemModel *item_model; + NautilusViewItem *item; - item_model = NAUTILUS_VIEW_ITEM_MODEL (gtk_list_item_get_item (listitem)); + item = NAUTILUS_VIEW_ITEM (gtk_list_item_get_item (listitem)); - nautilus_view_item_model_set_item_ui (item_model, NULL); + nautilus_view_item_set_item_ui (item, NULL); } static void |