summaryrefslogtreecommitdiff
path: root/components/rtgui/widgets/progressbar.c
diff options
context:
space:
mode:
author[email protected] <[email protected]>2010-09-09 23:07:22 +0000
committer[email protected] <[email protected]>2010-09-09 23:07:22 +0000
commit3c975d6922c5bd451c67f82a010786c979d20fac (patch)
tree04be38f3aeec65e5dae96daca04b8b57162c3324 /components/rtgui/widgets/progressbar.c
parent814ac8fb22784e9eea0cf0d5528276450c85e868 (diff)
fix widget hide/enable issue and add on_changed in slider widget.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@899 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/rtgui/widgets/progressbar.c')
-rw-r--r--components/rtgui/widgets/progressbar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/rtgui/widgets/progressbar.c b/components/rtgui/widgets/progressbar.c
index f29e2bfadc..7e346c8194 100644
--- a/components/rtgui/widgets/progressbar.c
+++ b/components/rtgui/widgets/progressbar.c
@@ -81,6 +81,8 @@ void rtgui_progressbar_set_value(struct rtgui_progressbar *bar, int value)
{
RT_ASSERT(bar != RT_NULL);
+ if (!RTGUI_WIDGET_IS_ENABLE(RTGUI_WIDGET(bar))) return;
+
bar->position = value;
rtgui_theme_draw_progressbar(bar);