aboutsummaryrefslogtreecommitdiff
path: root/src/bw.c
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-10-01 16:08:30 +0200
committerjcid <devnull@localhost>2008-10-01 16:08:30 +0200
commitbb03b8a02fbbf22b04aa64459cf95bd9422e598d (patch)
treef897a6d1df288b5bf0a6673ac2469e173b858b9f /src/bw.c
parentff1884a3ffd437d00fc64b61f8651ed8208833d7 (diff)
- Committed the no bw as window user_data() patch.
Diffstat (limited to 'src/bw.c')
-rw-r--r--src/bw.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bw.c b/src/bw.c
index e93cd9a2..27f3066c 100644
--- a/src/bw.c
+++ b/src/bw.c
@@ -263,12 +263,12 @@ int a_Bw_num()
}
/*
- * TODO: remove this Hack.
+ * Return a bw by index
*/
-BrowserWindow *a_Bw_get()
+BrowserWindow *a_Bw_get(int i)
{
- if (num_bws > 0)
- return bws[0];
+ if (i >= 0 && i < num_bws)
+ return bws[i];
return NULL;
}