[nautilus/wip/corey/dnd_features: 74/80] list-base: Move nautilus_list_base_get_icon_size() up for reuse




commit 381276be4a0be9b57dbb1255537ea636444dc884
Author: Corey Berla <corey berla me>
Date:   Thu Aug 18 10:22:05 2022 -0700

    list-base: Move nautilus_list_base_get_icon_size() up for reuse

 src/nautilus-list-base.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/nautilus-list-base.c b/src/nautilus-list-base.c
index 5af630aef..db0ff2df7 100644
--- a/src/nautilus-list-base.c
+++ b/src/nautilus-list-base.c
@@ -263,6 +263,12 @@ set_focus_item (NautilusListBase *self,
                                 FALSE, FALSE);
 }
 
+static guint
+nautilus_list_base_get_icon_size (NautilusListBase *self)
+{
+    return NAUTILUS_LIST_BASE_CLASS (G_OBJECT_GET_CLASS (self))->get_icon_size (self);
+}
+
 /* GtkListBase changes selection only with the primary button, and only after
  * release. But we need to anticipate selection earlier if we are to activate it
  * or open its context menu. This helper should be used in these situations if
@@ -989,12 +995,6 @@ nautilus_list_base_scroll_to_item (NautilusListBase *self,
     NAUTILUS_LIST_BASE_CLASS (G_OBJECT_GET_CLASS (self))->scroll_to_item (self, position);
 }
 
-static guint
-nautilus_list_base_get_icon_size (NautilusListBase *self)
-{
-    return NAUTILUS_LIST_BASE_CLASS (G_OBJECT_GET_CLASS (self))->get_icon_size (self);
-}
-
 static GtkWidget *
 nautilus_list_base_get_view_ui (NautilusListBase *self)
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]