[nautilus/wip/coreyberla/window-dispose: 1/5] list-base: Don't unnecessarily case NAUTILUS_LIST_BASE
- From: Corey Berla <coreyberla src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/coreyberla/window-dispose: 1/5] list-base: Don't unnecessarily case NAUTILUS_LIST_BASE
- Date: Fri, 5 Aug 2022 16:31:04 +0000 (UTC)
commit bcd4a73748327b9694acc2ee2f6272aa7289aa21
Author: Corey Berla <corey berla me>
Date: Fri Aug 5 07:30:12 2022 -0700
list-base: Don't unnecessarily case NAUTILUS_LIST_BASE
src/nautilus-list-base.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/nautilus-list-base.c b/src/nautilus-list-base.c
index 4bd754b8e..5404b1be9 100644
--- a/src/nautilus-list-base.c
+++ b/src/nautilus-list-base.c
@@ -222,7 +222,7 @@ nautilus_list_base_set_icon_size (NautilusListBase *self,
GListModel *model;
guint n_items;
- model = G_LIST_MODEL (nautilus_list_base_get_model (NAUTILUS_LIST_BASE (self)));
+ model = G_LIST_MODEL (nautilus_list_base_get_model (self));
n_items = g_list_model_get_n_items (model);
for (guint i = 0; i < n_items; i++)
@@ -245,7 +245,7 @@ select_single_item_if_not_selected (NautilusListBase *self,
NautilusViewModel *model;
guint position;
- model = nautilus_list_base_get_model (NAUTILUS_LIST_BASE (self));
+ model = nautilus_list_base_get_model (self);
position = nautilus_view_model_get_index (model, item);
if (!gtk_selection_model_is_selected (GTK_SELECTION_MODEL (model), position))
{
@@ -388,7 +388,7 @@ on_item_click_released (GtkGestureClick *gesture,
NautilusViewItem *item;
guint i;
- model = nautilus_list_base_get_model (NAUTILUS_LIST_BASE (self));
+ model = nautilus_list_base_get_model (self);
item = nautilus_view_cell_get_item (cell);
g_return_if_fail (item != NULL);
i = nautilus_view_model_get_index (model, item);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]