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-view-cell.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-view-cell.c')
-rw-r--r-- | src/nautilus-view-cell.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nautilus-view-cell.c b/src/nautilus-view-cell.c index 0a184f0d0..bd5fb30d8 100644 --- a/src/nautilus-view-cell.c +++ b/src/nautilus-view-cell.c @@ -25,7 +25,7 @@ struct _NautilusViewCellPrivate AdwBin parent_instance; NautilusListBase *view; /* Unowned */ - NautilusViewItemModel *item; /* Owned reference */ + NautilusViewItem *item; /* Owned reference */ gboolean called_once; }; @@ -134,7 +134,7 @@ nautilus_view_cell_class_init (NautilusViewCellClass *klass) G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); properties[PROP_ITEM] = g_param_spec_object ("item", "", "", - NAUTILUS_TYPE_VIEW_ITEM_MODEL, + NAUTILUS_TYPE_VIEW_ITEM, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_properties (object_class, N_PROPS, properties); @@ -167,19 +167,19 @@ nautilus_view_cell_get_view (NautilusViewCell *self) } void -nautilus_view_cell_set_item (NautilusViewCell *self, - NautilusViewItemModel *item) +nautilus_view_cell_set_item (NautilusViewCell *self, + NautilusViewItem *item) { g_return_if_fail (NAUTILUS_IS_VIEW_CELL (self)); - g_return_if_fail (item == NULL || NAUTILUS_IS_VIEW_ITEM_MODEL (item)); + g_return_if_fail (item == NULL || NAUTILUS_IS_VIEW_ITEM (item)); g_object_set (self, "item", item, NULL); } -NautilusViewItemModel * +NautilusViewItem * nautilus_view_cell_get_item (NautilusViewCell *self) { - NautilusViewItemModel *item; + NautilusViewItem *item; g_return_val_if_fail (NAUTILUS_IS_VIEW_CELL (self), NULL); |