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




commit 8fb7336ab85fdee0ad788dec9eb78a6b8383e33e
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 3b8de9867..c8e6f8081 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]