[libhandy/wip/haecker-felix/flap-widget] Indentation



commit 07a85d5bdd2e972c323ad00e8a09a6badb811d1a
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Thu Nov 19 19:33:24 2020 +0500

    Indentation

 src/hdy-flap.c | 37 ++++++++++++++++++-------------------
 1 file changed, 18 insertions(+), 19 deletions(-)
---
diff --git a/src/hdy-flap.c b/src/hdy-flap.c
index c16b91a2..188a028c 100644
--- a/src/hdy-flap.c
+++ b/src/hdy-flap.c
@@ -1414,29 +1414,28 @@ hdy_flap_get_swipe_area (HdySwipeable           *swipeable,
     : &self->flap_allocation;
 
   if (self->orientation == GTK_ORIENTATION_HORIZONTAL) {
-      if (alloc->x <= 0) {
-        rect->x = 0;
-        rect->width = MAX (alloc->width + alloc->x, HDY_SWIPE_BORDER);
-      } else if (alloc->x + alloc->width >= width) {
-        rect->width = MAX (width - alloc->x, HDY_SWIPE_BORDER);
-        rect->x = width - rect->width;
-      } else {
-        g_assert_not_reached ();
-      }
+    if (alloc->x <= 0) {
+      rect->x = 0;
+      rect->width = MAX (alloc->width + alloc->x, HDY_SWIPE_BORDER);
+    } else if (alloc->x + alloc->width >= width) {
+      rect->width = MAX (width - alloc->x, HDY_SWIPE_BORDER);
+      rect->x = width - rect->width;
+    } else {
+      g_assert_not_reached ();
+    }
 
     rect->y = alloc->y;
     rect->height = alloc->height;
   } else {
-      if (alloc->y <= 0) {
-        rect->y = 0;
-        rect->height = MAX (alloc->height + alloc->y, HDY_SWIPE_BORDER);
-      } else if (alloc->y + alloc->height >= height) {
-        rect->height = MAX (height - alloc->y, HDY_SWIPE_BORDER);
-        rect->y = height - rect->height;
-      } else {
-        g_assert_not_reached ();
-      }
-
+    if (alloc->y <= 0) {
+      rect->y = 0;
+      rect->height = MAX (alloc->height + alloc->y, HDY_SWIPE_BORDER);
+    } else if (alloc->y + alloc->height >= height) {
+      rect->height = MAX (height - alloc->y, HDY_SWIPE_BORDER);
+      rect->y = height - rect->height;
+    } else {
+      g_assert_not_reached ();
+    }
 
     rect->x = alloc->x;
     rect->width = alloc->width;


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