diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2005-04-18 15:59:49 +0000 |
---|---|---|
committer | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2005-04-18 15:59:49 +0000 |
commit | f66a762344d77b8e4a4d50e68896638a234dc631 (patch) | |
tree | 9b3bf1632a7dd59c788d998b24efa084c9f6ea0a /extra/config/lxdialog/util.c | |
parent | 5178925d7b23c6fd5c79d602c9e873cb9ba50ea2 (diff) |
Updated to match Linux 2.6.11.
Diffstat (limited to 'extra/config/lxdialog/util.c')
-rw-r--r-- | extra/config/lxdialog/util.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/extra/config/lxdialog/util.c b/extra/config/lxdialog/util.c index e7bce9be6..6f83951b9 100644 --- a/extra/config/lxdialog/util.c +++ b/extra/config/lxdialog/util.c @@ -357,3 +357,19 @@ first_alpha(const char *string, const char *exempt) return 0; } + +/* + * Get the first selected item in the dialog_list_item list. + */ +struct dialog_list_item * +first_sel_item(int item_no, struct dialog_list_item ** items) +{ + int i; + + for (i = 0; i < item_no; i++) { + if (items[i]->selected) + return items[i]; + } + + return NULL; +} |