[gnome-applets/wip/segeiger/windowpicker] windowpicker: cleanup code formatting



commit 0ccaa485393102d14380f1d70ea0121951d8a589
Author: Sebastian Geiger <sbastig gmx net>
Date:   Thu Oct 17 20:11:28 2019 +0200

    windowpicker: cleanup code formatting

 windowpicker/src/task-item.c | 32 +++++++++++++++++++++-----------
 1 file changed, 21 insertions(+), 11 deletions(-)
---
diff --git a/windowpicker/src/task-item.c b/windowpicker/src/task-item.c
index a029479d4..cea0e78db 100644
--- a/windowpicker/src/task-item.c
+++ b/windowpicker/src/task-item.c
@@ -745,18 +745,28 @@ static void on_drag_end (
     g_object_set_data (G_OBJECT (widget), "drag-true", GINT_TO_POINTER (0));
 }
 
-static gint grid_get_pos (GtkWidget *grid, GtkWidget *item) {
-    GtkContainer *container = GTK_CONTAINER (grid);
-    GList *items = gtk_container_get_children (container);
-
-    while (items) {
-        if (items->data == item) {
-               gint pos;
-               gtk_container_child_get (container, item, "position", &pos, NULL);
-               return pos;
-           }
+static gint
+grid_get_pos (GtkWidget *grid,
+              GtkWidget *item)
+{
+  GtkContainer *container;
+  GList *items;
+
+  container = GTK_CONTAINER (grid);
+  items = gtk_container_get_children (container);
+
+    while (items)
+      {
+        if (items->data == item)
+          {
+            gint pos;
+            gtk_container_child_get (container, item, "position", &pos, NULL);
+            return pos;
+          }
+
         items = items->next;
-    }
+      }
+
     return -1;
 }
 


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