(svn r15423) -Codechange: split widget related types to their own header and add a bit of type strictness.

This commit is contained in:
rubidium
2009-02-09 01:06:23 +00:00
parent a7264bd5aa
commit 66cb1fe1ff
19 changed files with 229 additions and 181 deletions

View File

@@ -172,6 +172,7 @@ static void DispatchLeftClickEvent(Window *w, int x, int y, bool double_click)
if (wi->type & WWB_MASK) {
/* special widget handling for buttons*/
switch (wi->type) {
default: NOT_REACHED();
case WWT_PANEL | WWB_PUSHBUTTON: /* WWT_PUSHBTN */
case WWT_IMGBTN | WWB_PUSHBUTTON: /* WWT_PUSHIMGBTN */
case WWT_TEXTBTN | WWB_PUSHBUTTON: /* WWT_PUSHTXTBTN */