[libhandy/wip/haecker-felix/flap-widget: 1/3] stackable-box: Move HDY_SWIPE_BORDER to hdy-swipe-tracker-private.h




commit c5723e5e483328336ae5841197ec0da87c5bfcdf
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Thu Dec 10 14:44:29 2020 +0500

    stackable-box: Move HDY_SWIPE_BORDER to hdy-swipe-tracker-private.h
    
    We'll need the same constant in HdyFlap.

 src/hdy-stackable-box.c         | 2 +-
 src/hdy-swipe-tracker-private.h | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/hdy-stackable-box.c b/src/hdy-stackable-box.c
index 9bc522b5..44cfef47 100644
--- a/src/hdy-stackable-box.c
+++ b/src/hdy-stackable-box.c
@@ -14,6 +14,7 @@
 #include "hdy-stackable-box-private.h"
 #include "hdy-shadow-helper-private.h"
 #include "hdy-swipeable.h"
+#include "hdy-swipe-tracker-private.h"
 
 /**
  * PRIVATE:hdy-stackable-box
@@ -74,7 +75,6 @@ enum {
 #define HDY_FOLD_FOLDED TRUE
 #define HDY_FOLD_MAX 2
 #define GTK_ORIENTATION_MAX 2
-#define HDY_SWIPE_BORDER 32
 
 typedef struct _HdyStackableBoxChildInfo HdyStackableBoxChildInfo;
 
diff --git a/src/hdy-swipe-tracker-private.h b/src/hdy-swipe-tracker-private.h
index d4b5541e..d85f181b 100644
--- a/src/hdy-swipe-tracker-private.h
+++ b/src/hdy-swipe-tracker-private.h
@@ -14,6 +14,8 @@
 
 G_BEGIN_DECLS
 
+#define HDY_SWIPE_BORDER 32
+
 void hdy_swipe_tracker_emit_begin_swipe (HdySwipeTracker        *self,
                                          HdyNavigationDirection  direction,
                                          gboolean                direct);


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