diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-10-25 19:27:09 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-10-25 19:27:09 +0000 |
| commit | 174de91c343dfbdfe866e566393bf4790ae22596 (patch) | |
| tree | 6cfbe9eebbad2f8b4fe6ac8db10512eac76767f4 /openbox/dock.c | |
| parent | 4cb183401cc42f61a759b02f1210a3528f7869e5 (diff) | |
use g_[s]list_next/previous consistantly, and check for "it" instead of "it != NULL" consistantly. props to Logan again :)
Diffstat (limited to 'openbox/dock.c')
| -rw-r--r-- | openbox/dock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openbox/dock.c b/openbox/dock.c index b7708900..592446a2 100644 --- a/openbox/dock.c +++ b/openbox/dock.c @@ -224,7 +224,7 @@ void dock_configure() dock->w = dock->h = 0; /* get the size */ - for (it = dock->dock_apps; it; it = it->next) { + for (it = dock->dock_apps; it; it = g_list_next(it)) { ObDockApp *app = it->data; switch (config_dock_orient) { case OB_ORIENTATION_HORZ: @@ -241,7 +241,7 @@ void dock_configure() spot = (config_dock_orient == OB_ORIENTATION_HORZ ? minw : minh) / 2; /* position the apps */ - for (it = dock->dock_apps; it; it = it->next) { + for (it = dock->dock_apps; it; it = g_list_next(it)) { ObDockApp *app = it->data; switch (config_dock_orient) { case OB_ORIENTATION_HORZ: @@ -550,7 +550,7 @@ void dock_app_drag(ObDockApp *app, XMotionEvent *e) /* which dock app are we on top of? */ stop = FALSE; - for (it = dock->dock_apps; it; it = it->next) { + for (it = dock->dock_apps; it; it = g_list_next(it)) { over = it->data; switch (config_dock_orient) { case OB_ORIENTATION_HORZ: |
