X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=mod_menu%2Fmkmenu.c;h=041e6662a56fdc98b2a657273e626918ad43d2f8;hb=ae4260bb64817c11f9a7140324cd3e3ba113e297;hp=5f4fecf72e45c708313f41d1d7a76ef409977a66;hpb=8366314611bf30a0f31d25bf5f5023186fa87692;p=ion3.git diff --git a/mod_menu/mkmenu.c b/mod_menu/mkmenu.c index 5f4fecf..041e666 100644 --- a/mod_menu/mkmenu.c +++ b/mod_menu/mkmenu.c @@ -1,17 +1,15 @@ /* * ion/mod_menu/mkmenu.c * - * Copyright (c) Tuomo Valkonen 1999-2006. + * Copyright (c) Tuomo Valkonen 1999-2007. * - * Ion is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or - * (at your option) any later version. + * See the included file LICENSE for details. */ #include #include #include +#include #include #include #include "menu.h" @@ -49,11 +47,12 @@ WMenu *mod_menu_do_menu(WMPlex *mplex, ExtlFn handler, ExtlTab tab, fnp.refg.h=0; par.flags=(MPLEX_ATTACH_SWITCHTO| - MPLEX_ATTACH_MODAL| + MPLEX_ATTACH_LEVEL| MPLEX_ATTACH_UNNUMBERED| MPLEX_ATTACH_SIZEPOLICY); par.szplcy=SIZEPOLICY_FULL_BOUNDS; - + par.level=STACKING_LEVEL_MODAL1+1; + return (WMenu*)mplex_do_attach_new(mplex, &par, (WRegionCreateFn*)create_menu, (void*)&fnp);