Remove some evil tabs
authorMikael Magnusson <mikachu@gmail.com>
Tue, 11 Jan 2011 17:12:01 +0000 (18:12 +0100)
committerMikael Magnusson <mikachu@gmail.com>
Wed, 17 Apr 2013 11:23:19 +0000 (13:23 +0200)
obt/link.h
openbox/moveresize.c
openbox/place_overlap.c

index 9ad86cc..29147d8 100644 (file)
@@ -26,15 +26,15 @@ G_BEGIN_DECLS
 struct _ObtPaths;
 
 typedef enum {
 struct _ObtPaths;
 
 typedef enum {
-       OBT_LINK_TYPE_APPLICATION = 1,
-       OBT_LINK_TYPE_URL         = 2,
-       OBT_LINK_TYPE_DIRECTORY   = 3
+    OBT_LINK_TYPE_APPLICATION = 1,
+    OBT_LINK_TYPE_URL         = 2,
+    OBT_LINK_TYPE_DIRECTORY   = 3
 } ObtLinkType;
 
 typedef enum {
 } ObtLinkType;
 
 typedef enum {
-       OBT_LINK_APP_STARTUP_NO_SUPPORT,
-       OBT_LINK_APP_STARTUP_PROTOCOL_SUPPORT,
-       OBT_LINK_APP_STARTUP_LEGACY_SUPPORT
+    OBT_LINK_APP_STARTUP_NO_SUPPORT,
+    OBT_LINK_APP_STARTUP_PROTOCOL_SUPPORT,
+    OBT_LINK_APP_STARTUP_LEGACY_SUPPORT
 } ObtLinkAppStartup;
 
 /*! These bit flags are environments for links.  Some links are used or not
 } ObtLinkAppStartup;
 
 /*! These bit flags are environments for links.  Some links are used or not
@@ -50,14 +50,14 @@ typedef enum {
 } ObtLinkEnvFlags;
 
 typedef enum {
 } ObtLinkEnvFlags;
 
 typedef enum {
-       /*! The app can be launched with a single local file */
-       OBT_LINK_APP_SINGLE_LOCAL = 1 << 0,
-       /*! The app can be launched with multiple local files */
-       OBT_LINK_APP_MULTI_LOCAL  = 1 << 1,
-       /*! The app can be launched with a single URL */
-       OBT_LINK_APP_SINGLE_URL   = 1 << 2,
-       /*! The app can be launched with multiple URLs */
-       OBT_LINK_APP_MULTI_URL    = 1 << 3
+    /*! The app can be launched with a single local file */
+    OBT_LINK_APP_SINGLE_LOCAL = 1 << 0,
+    /*! The app can be launched with multiple local files */
+    OBT_LINK_APP_MULTI_LOCAL  = 1 << 1,
+    /*! The app can be launched with a single URL */
+    OBT_LINK_APP_SINGLE_URL   = 1 << 2,
+    /*! The app can be launched with multiple URLs */
+    OBT_LINK_APP_MULTI_URL    = 1 << 3
 } ObtLinkAppOpen;
 
 typedef struct _ObtLink     ObtLink;
 } ObtLinkAppOpen;
 
 typedef struct _ObtLink     ObtLink;
@@ -77,8 +77,8 @@ gboolean obt_link_deleted (ObtLink *e);
 ObtLinkType obt_link_type (ObtLink *e);
 
 /*! Returns TRUE if the .desktop file should be displayed to users, given the
 ObtLinkType obt_link_type (ObtLink *e);
 
 /*! Returns TRUE if the .desktop file should be displayed to users, given the
-    current    environment.  If FALSE, the .desktop file should not be showed.
-       This also uses the TryExec option if it is present.
+    current environment.  If FALSE, the .desktop file should not be showed.
+    This also uses the TryExec option if it is present.
     @env A semicolon-deliminated list of environemnts.  Can be one or more of:
          GNOME, KDE, ROX, XFCE.  Other environments not listed here may also
          be supported.  This can be null also if not listing any environment. */
     @env A semicolon-deliminated list of environemnts.  Can be one or more of:
          GNOME, KDE, ROX, XFCE.  Other environments not listed here may also
          be supported.  This can be null also if not listing any environment. */
index 1625ccf..2d0dc3a 100644 (file)
@@ -582,19 +582,19 @@ static void edge_warp_move_ptr(void)
     a = screen_physical_area_all_monitors();
 
     switch (edge_warp_dir) {
     a = screen_physical_area_all_monitors();
 
     switch (edge_warp_dir) {
-       case OB_DIRECTION_NORTH:
-           y = a->height - 1;
-           break;
-       case OB_DIRECTION_EAST:
-           x = a->x;
-           break;
-       case OB_DIRECTION_SOUTH:
-           y = a->y;
-           break;
-       case OB_DIRECTION_WEST:
-           x = a->width - 1;
-           break;
-       default:
+    case OB_DIRECTION_NORTH:
+        y = a->height - 1;
+        break;
+    case OB_DIRECTION_EAST:
+        x = a->x;
+        break;
+    case OB_DIRECTION_SOUTH:
+        y = a->y;
+        break;
+    case OB_DIRECTION_WEST:
+        x = a->width - 1;
+        break;
+    default:
         g_assert_not_reached();
     }
 
         g_assert_not_reached();
     }
 
index ef73bd8..5cca1bc 100644 (file)
@@ -43,33 +43,33 @@ void place_overlap_find_least_placement(const Rect* client_rects,
     int overlap = G_MAXINT;
     int max_edges = 2 * (n_client_rects + 1);
 
     int overlap = G_MAXINT;
     int max_edges = 2 * (n_client_rects + 1);
 
-       int x_edges[max_edges];
-       int y_edges[max_edges];
-       make_grid(client_rects, n_client_rects, bound,
-                         x_edges, y_edges, max_edges);
-       int i;
-       for (i = 0; i < max_edges; ++i) {
-               if (x_edges[i] == G_MAXINT)
-                       break;
-               int j;
-               for (j = 0; j < max_edges; ++j) {
-                       if (y_edges[j] == G_MAXINT)
-                               break;
-                       Point grid_point = {.x = x_edges[i], .y = y_edges[j]};
-                       Point best_top_left;
-                       int this_overlap =
-                               best_direction(&grid_point, client_rects, n_client_rects,
-                                                          bound, req_size, &best_top_left);
-                       if (this_overlap < overlap) {
-                               overlap = this_overlap;
-                               *result = best_top_left;
-                       }
-                       if (overlap == 0)
-                               break;
-               }
-               if (overlap == 0)
-                       break;
-       }
+    int x_edges[max_edges];
+    int y_edges[max_edges];
+    make_grid(client_rects, n_client_rects, bound,
+            x_edges, y_edges, max_edges);
+    int i;
+    for (i = 0; i < max_edges; ++i) {
+        if (x_edges[i] == G_MAXINT)
+            break;
+        int j;
+        for (j = 0; j < max_edges; ++j) {
+            if (y_edges[j] == G_MAXINT)
+                break;
+            Point grid_point = {.x = x_edges[i], .y = y_edges[j]};
+            Point best_top_left;
+            int this_overlap =
+                best_direction(&grid_point, client_rects, n_client_rects,
+                        bound, req_size, &best_top_left);
+            if (this_overlap < overlap) {
+                overlap = this_overlap;
+                *result = best_top_left;
+            }
+            if (overlap == 0)
+                break;
+        }
+        if (overlap == 0)
+            break;
+    }
 }
 
 static int compare_ints(const void* a, const void* b)
 }
 
 static int compare_ints(const void* a, const void* b)