summaryrefslogtreecommitdiff
path: root/components/rtgui/widgets/window.c
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-09-20 08:13:23 +0000
committer[email protected] <[email protected]>2012-09-20 08:13:23 +0000
commitbcc6ffac9ece24f8db625c4e2a1e48fbc8258087 (patch)
treeeb9b67f2dbd0bf83bb4730d4740b6aedcdd6eab3 /components/rtgui/widgets/window.c
parent2d6bb86360570605264ca50c9801cf09a8ef9a32 (diff)
sync RTGUI with github(https://github.com/RT-Thread/RTGUI) 9573987ab967d6823151f967e4715a995579c8e5
As always, full log is in GitHub. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2301 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/rtgui/widgets/window.c')
-rw-r--r--components/rtgui/widgets/window.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/components/rtgui/widgets/window.c b/components/rtgui/widgets/window.c
index cedf475640..c562ec2fba 100644
--- a/components/rtgui/widgets/window.c
+++ b/components/rtgui/widgets/window.c
@@ -493,13 +493,6 @@ rt_bool_t rtgui_win_event_handler(struct rtgui_object* object, struct rtgui_even
}
win->flag |= RTGUI_WIN_FLAG_ACTIVATE;
-#ifndef RTGUI_USING_SMALL_SIZE
- if (RTGUI_WIDGET(object)->on_draw != RT_NULL)
- RTGUI_WIDGET(object)->on_draw(object, event);
- else
-#endif
- rtgui_widget_update(RTGUI_WIDGET(win));
-
if (win->on_activate != RT_NULL)
{
win->on_activate(RTGUI_OBJECT(object), event);
@@ -522,13 +515,6 @@ rt_bool_t rtgui_win_event_handler(struct rtgui_object* object, struct rtgui_even
else
{
win->flag &= ~RTGUI_WIN_FLAG_ACTIVATE;
-#ifndef RTGUI_USING_SMALL_SIZE
- if (RTGUI_WIDGET(object)->on_draw != RT_NULL)
- RTGUI_WIDGET(object)->on_draw(object, event);
- else
-#endif
- rtgui_widget_update(RTGUI_WIDGET(win));
-
if (win->on_deactivate != RT_NULL)
{
win->on_deactivate(RTGUI_OBJECT(object), event);