[nautilus] window: Move NautilusNavigationDirection from toolbar.c to window.h



commit 55c6e19682762211814a9f80e40cef9c7561f91c
Author: Corey Berla <corey berla me>
Date:   Sat Jul 16 07:58:41 2022 -0700

    window: Move NautilusNavigationDirection from toolbar.c to window.h
    
    We need to reuse the same enum when navigating to new tabs.

 src/nautilus-toolbar.c | 7 -------
 src/nautilus-window.h  | 7 +++++++
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c
index bc91c2ecb..365cb4721 100644
--- a/src/nautilus-toolbar.c
+++ b/src/nautilus-toolbar.c
@@ -44,13 +44,6 @@
 
 /* Just design, context at https://gitlab.gnome.org/GNOME/nautilus/issues/548#note_274131 */
 
-typedef enum
-{
-    NAUTILUS_NAVIGATION_DIRECTION_NONE,
-    NAUTILUS_NAVIGATION_DIRECTION_BACK,
-    NAUTILUS_NAVIGATION_DIRECTION_FORWARD
-} NautilusNavigationDirection;
-
 struct _NautilusToolbar
 {
     AdwBin parent_instance;
diff --git a/src/nautilus-window.h b/src/nautilus-window.h
index 8fba9aad9..03fb00edd 100644
--- a/src/nautilus-window.h
+++ b/src/nautilus-window.h
@@ -57,6 +57,13 @@ typedef void (* NautilusWindowHandleExported) (NautilusWindow *window,
 #define NAUTILUS_WINDOW_DEFAULT_WIDTH          890
 #define NAUTILUS_WINDOW_DEFAULT_HEIGHT         550
 
+typedef enum
+{
+    NAUTILUS_NAVIGATION_DIRECTION_NONE,
+    NAUTILUS_NAVIGATION_DIRECTION_BACK,
+    NAUTILUS_NAVIGATION_DIRECTION_FORWARD
+} NautilusNavigationDirection;
+
 NautilusWindow * nautilus_window_new                  (void);
 void             nautilus_window_close                (NautilusWindow    *window);
 


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