]> git.decadent.org.uk Git - ion3.git/blob - mod_tiling/mod_tiling.lua
Imported Upstream version 20090110
[ion3.git] / mod_tiling / mod_tiling.lua
1 --
2 -- ion/mod_menu/mod_tiling.lua -- Tiling module stub loader
3 -- 
4 -- Copyright (c) Tuomo Valkonen 2004-2009.
5 --
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.
10 --
11
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
16
17 if not ioncore.load_module("mod_tiling") then
18     return
19 end
20
21
22 -- Change default layout
23 if ioncore.getlayout("default")==ioncore.getlayout("empty") then
24     ioncore.deflayout("default", {
25         managed = {
26             {
27                 type = "WTiling",
28                 bottom = true,
29             }
30         }
31     })
32 end
33
34
35 -- Mark ourselves loaded.
36 package.loaded["mod_tiling"]=true