More migration. This just leaves box.c and windows/menu.c, I think...

This commit is contained in:
Pietro Gagliardi 2015-05-29 22:29:52 -04:00
parent 6cbe6b5c0e
commit 89f2b5e665
1 changed files with 1 additions and 24 deletions

View File

@ -170,16 +170,6 @@ static void windowHide(uiControl *c)
ShowWindow(w->hwnd, SW_HIDE);
}
static void windowContainerShow(uiControl *c)
{
complain("attempt to container show uiWindow %p", c);
}
static void windowContainerHide(uiControl *c)
{
complain("attempt to container hide uiWindow %p", c);
}
static void windowEnable(uiControl *c)
{
struct window *w = (struct window *) c;
@ -198,16 +188,6 @@ static void windowDisable(uiControl *c)
uiControlContainerDisable(w->child);
}
static void windowContainerEnable(uiControl *c)
{
complain("attempt to container enable uiWindow %p", c);
}
static void windowContainerDisable(uiControl *c)
{
complain("attempt to container disable uiWindow %p", c);
}
static void windowSysFunc(uiControl *c, uiControlSysFuncParams *p)
{
complain("attempt to call system functions on uiWindow %p", c);
@ -376,14 +356,11 @@ uiWindow *uiNewWindow(const char *title, int width, int height, int hasMenubar)
uiControl(w)->ContainerVisible = windowContainerVisible;
uiControl(w)->Show = windowShow;
uiControl(w)->Hide = windowHide;
uiControl(w)->ContainerShow = windowContainerShow;
uiControl(w)->ContainerHide = windowContainerHide;
uiControl(w)->Enable = windowEnable;
uiControl(w)->Disable = windowDisable;
uiControl(w)->ContainerEnable = windowContainerEnable;
uiControl(w)->ContainerDisable = windowContainerDisable;
uiControl(w)->SysFunc = windowSysFunc;
uiControl(w)->StartZOrder = windowStartZOrder;
// TODO other methods
uiWindow(w)->Title = windowTitle;
uiWindow(w)->SetTitle = windowSetTitle;