[nautilus/wip/coreyberla/window-dispose: 103/107] list-base: Don't unnecessarily case NAUTILUS_LIST_BASE




commit ff7e23c2e8338ce41984054b959252c377185b1b
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]