summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/list.c7
-rw-r--r--apps/gui/list.h2
-rw-r--r--apps/gui/skin_engine/skin_display.c33
-rw-r--r--apps/gui/skin_engine/skin_engine.h3
4 files changed, 0 insertions, 45 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c
index 4f1d383..c53a1f5 100644
--- a/apps/gui/list.c
+++ b/apps/gui/list.c
@@ -778,13 +778,6 @@ bool list_do_action(int context, int timeout,
return gui_synclist_do_button(lists, action, wrap);
}
-bool gui_synclist_item_is_onscreen(struct gui_synclist *lists,
- enum screen_type screen, int item)
-{
- int nb_lines = list_get_nb_lines(lists, screen);
- return (unsigned)(item - lists->start_item[screen]) < (unsigned) nb_lines;
-}
-
/* Simple use list implementation */
static int simplelist_line_count = 0;
static char simplelist_text[SIMPLELIST_MAX_LINES][SIMPLELIST_MAX_LINELENGTH];
diff --git a/apps/gui/list.h b/apps/gui/list.h
index 1a713da..c536046 100644
--- a/apps/gui/list.h
+++ b/apps/gui/list.h
@@ -165,8 +165,6 @@ extern void gui_synclist_set_title(struct gui_synclist * lists, char * title,
enum themable_icons icon);
extern void gui_synclist_hide_selection_marker(struct gui_synclist *lists,
bool hide);
-extern bool gui_synclist_item_is_onscreen(struct gui_synclist *lists,
- enum screen_type screen, int item);
/*
* Do the action implied by the given button,
* returns true if the action was handled.
diff --git a/apps/gui/skin_engine/skin_display.c b/apps/gui/skin_engine/skin_display.c
index 206da9d..0613f98 100644
--- a/apps/gui/skin_engine/skin_display.c
+++ b/apps/gui/skin_engine/skin_display.c
@@ -95,39 +95,6 @@ void skin_update(enum skinnable_screens skin, enum screen_type screen,
#ifdef HAVE_LCD_BITMAP
-void skin_statusbar_changed(struct gui_wps *skin)
-{
- if (!skin)
- return;
- struct wps_data *data = skin->data;
- const struct screen *display = skin->display;
- const int screen = display->screen_type;
- struct skin_viewport *svp = skin_find_item(VP_DEFAULT_LABEL_STRING, SKIN_FIND_VP, data);
-
- struct viewport *vp = &svp->vp;
- viewport_set_defaults(vp, screen);
-
- if (data->wps_sb_tag)
- { /* fix up the default viewport */
- if (data->show_sb_on_wps)
- {
- if (statusbar_position(screen) != STATUSBAR_OFF)
- return; /* vp is fixed already */
-
- vp->y = STATUSBAR_HEIGHT;
- vp->height = display->lcdheight - STATUSBAR_HEIGHT;
- }
- else
- {
- if (statusbar_position(screen) == STATUSBAR_OFF)
- return; /* vp is fixed already */
- vp->y = vp->x = 0;
- vp->height = display->lcdheight;
- vp->width = display->lcdwidth;
- }
- }
-}
-
void draw_progressbar(struct gui_wps *gwps, int line, struct progressbar *pb)
{
struct screen *display = gwps->display;
diff --git a/apps/gui/skin_engine/skin_engine.h b/apps/gui/skin_engine/skin_engine.h
index 7a41063..ac839ff 100644
--- a/apps/gui/skin_engine/skin_engine.h
+++ b/apps/gui/skin_engine/skin_engine.h
@@ -57,9 +57,6 @@ void skin_update(enum skinnable_screens skin, enum screen_type screen,
bool skin_data_load(enum screen_type screen, struct wps_data *wps_data,
const char *buf, bool isfile);
-/* call this in statusbar toggle handlers if needed */
-void skin_statusbar_changed(struct gui_wps*);
-
bool skin_has_sbs(enum screen_type screen, struct wps_data *data);