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




commit f8b5aeda9d40242b601bca6e6f18ef3a992f6f6f
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 76b889279..115f61bbd 100644
--- a/src/nautilus-list-base.c
+++ b/src/nautilus-list-base.c
@@ -260,6 +260,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
@@ -983,12 +989,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]