[gnome-applets/wip/segeiger/windowpicker: 2/3] windowpicker: cleanup code formatting
- From: Sebastian Geiger <segeiger src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets/wip/segeiger/windowpicker: 2/3] windowpicker: cleanup code formatting
- Date: Thu, 17 Oct 2019 21:25:26 +0000 (UTC)
commit a6a2501629d69e0fe4a1b5b63d5d6827d22bb994
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 9d7d02f46..105936376 100644
--- a/windowpicker/src/task-item.c
+++ b/windowpicker/src/task-item.c
@@ -744,18 +744,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]