From 38deb8f13a9896f2d6eb884c6a8bbc9b10001255 Mon Sep 17 00:00:00 2001 From: Hristo Kovachev Date: Mon, 3 Apr 2006 08:51:08 +0000 Subject: Patch #4864 by Jonathan Gordon: text editor plugin, with some changes by me. Also correct a var clash between the rockbox's gui api and doom plugin git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9451 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/list.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'apps/gui/list.c') diff --git a/apps/gui/list.c b/apps/gui/list.c index 8ca3042a4b..d0117d7c03 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c @@ -491,6 +491,14 @@ void gui_synclist_set_nb_items(struct gui_synclist * lists, int nb_items) #endif } } +int gui_synclist_get_nb_items(struct gui_synclist * lists) +{ + return gui_list_get_nb_items(&((lists)->gui_list[0])); +} +int gui_synclist_get_sel_pos(struct gui_synclist * lists) +{ + return gui_list_get_sel_pos(&((lists)->gui_list[0])); +} void gui_synclist_set_icon_callback(struct gui_synclist * lists, list_get_icon icon_callback) { int i; -- cgit v1.2.3