From 7f41a3982fd72e6c6500b44a99a2f91799f29263 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 4 May 2015 14:45:18 -0400 Subject: [PATCH] Finished implementing uiTab enable/disable on Windows. --- windows/tab.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/windows/tab.c b/windows/tab.c index 4a054fe9..c04e42eb 100644 --- a/windows/tab.c +++ b/windows/tab.c @@ -96,22 +96,31 @@ static void tabPreferredSize(uiControl *c, uiSizing *d, intmax_t *width, intmax_ static void tabEnable(uiControl *c) { struct tab *t = (struct tab *) c; + uintmax_t i; (*(t->baseEnable))(uiControl(t)); + for (i = 0; i < t->len; i++) + uiControlEnable(uiControl(t->pages[i])); } static void tabDisable(uiControl *c) { struct tab *t = (struct tab *) c; + uintmax_t i; (*(t->baseDisable))(uiControl(t)); + for (i = 0; i < t->len; i++) + uiControlDisable(uiControl(t->pages[i])); } static void tabSysFunc(uiControl *c, uiControlSysFuncParams *p) { struct tab *t = (struct tab *) c; + uintmax_t i; (*(t->baseSysFunc))(uiControl(t), p); + for (i = 0; i < t->len; i++) + uiControlSysFunc(uiControl(t->pages[i]), p); } // common code for resizes