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




commit b324a2387ee5fe6d983794cec355472dd220fabe
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 a4b6f98fb..7eefc8849 100644
--- a/src/nautilus-list-base.c
+++ b/src/nautilus-list-base.c
@@ -236,6 +236,12 @@ nautilus_list_base_set_icon_size (NautilusListBase *self,
     }
 }
 
+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
@@ -954,12 +960,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]