From fd695c9ad3f37ca7654d2e9385a61ac6a954ad1d Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Mon, 27 Jul 2020 17:46:06 +0200 Subject: [PATCH] textarea: fix typo in lv_textarea_set_sscrollbar_mode Fixes #1691 --- CHANGELOG.md | 3 ++- src/lv_widgets/lv_textarea.c | 2 +- src/lv_widgets/lv_textarea.h | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 50b1d0821..a8e2f10e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,7 +17,8 @@ - Prevent duplicated sending of `LV_EVENT_INSERT` from text area - Tidy outer edges of cpicker widget. - Remove duplicated lines from `lv_tabview_add_tab` -- "btnmatrix: hadle combined states of buttons (e.g. chacked + disabled)" +- btnmatrix: hadle combined states of buttons (e.g. chacked + disabled) +- textarea: fix typo in lv_textarea_set_sscrollbar_mode ## v7.2.0 (21.07.2020) diff --git a/src/lv_widgets/lv_textarea.c b/src/lv_widgets/lv_textarea.c index f41169661..c82870bf1 100644 --- a/src/lv_widgets/lv_textarea.c +++ b/src/lv_widgets/lv_textarea.c @@ -149,7 +149,7 @@ lv_obj_t * lv_textarea_create(lv_obj_t * par, const lv_obj_t * copy) lv_label_set_text(ext->label, "Text area"); lv_obj_set_click(ext->label, false); lv_obj_set_size(ta, LV_TEXTAREA_DEF_WIDTH, LV_TEXTAREA_DEF_HEIGHT); - lv_textarea_set_sscrollbar_mode(ta, LV_SCROLLBAR_MODE_DRAG); + lv_textarea_set_scrollbar_mode(ta, LV_SCROLLBAR_MODE_DRAG); lv_obj_reset_style_list(ta, LV_PAGE_PART_SCROLLABLE); lv_theme_apply(ta, LV_THEME_TEXTAREA); diff --git a/src/lv_widgets/lv_textarea.h b/src/lv_widgets/lv_textarea.h index 49cfc9b7d..dbca0db45 100644 --- a/src/lv_widgets/lv_textarea.h +++ b/src/lv_widgets/lv_textarea.h @@ -224,7 +224,7 @@ void lv_textarea_set_insert_replace(lv_obj_t * ta, const char * txt); * @param ta pointer to a text area object * @param sb_mode the new mode from 'lv_scrollbar_mode_t' enum */ -static inline void lv_textarea_set_sscrollbar_mode(lv_obj_t * ta, lv_scrollbar_mode_t mode) +static inline void lv_textarea_set_scrollbar_mode(lv_obj_t * ta, lv_scrollbar_mode_t mode) { lv_page_set_scrollbar_mode(ta, mode); }