2 -- ion/mod_menu/mod_tiling.lua -- Tiling module stub loader
4 -- Copyright (c) Tuomo Valkonen 2004-2009.
6 -- Ion is free software; you can redistribute it and/or modify it under
7 -- the terms of the GNU Lesser General Public License as published by
8 -- the Free Software Foundation; either version 2.1 of the License, or
9 -- (at your option) any later version.
12 -- This is a slight abuse of the package.loaded variable perhaps, but
13 -- library-like packages should handle checking if they're loaded instead of
14 -- confusing the user with require/include differences.
15 if package
.loaded
["mod_tiling"] then return end
17 if not ioncore
.load_module("mod_tiling") then
22 -- Change default layout
23 if ioncore
.getlayout("default")==ioncore
.getlayout("empty") then
24 ioncore
.deflayout("default", {
35 -- Mark ourselves loaded.
36 package
.loaded
["mod_tiling"]=true