diff options
author | David Walter Seikel | 2014-05-16 19:01:10 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-05-16 19:01:10 +1000 |
commit | 4ad8e29364ba0074b1041c5ae19453a9a6f398d2 (patch) | |
tree | 708a58f5ac4658615b8659d3f017f4c0a624a6aa /src/purkle | |
parent | Put module name in winFang and winFang in Widget, plus related tweakage and use. (diff) | |
download | SledjHamr-4ad8e29364ba0074b1041c5ae19453a9a6f398d2.zip SledjHamr-4ad8e29364ba0074b1041c5ae19453a9a6f398d2.tar.gz SledjHamr-4ad8e29364ba0074b1041c5ae19453a9a6f398d2.tar.bz2 SledjHamr-4ad8e29364ba0074b1041c5ae19453a9a6f398d2.tar.xz |
Only open one purkle window.
Diffstat (limited to '')
-rw-r--r-- | src/purkle/purkle.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/purkle/purkle.c b/src/purkle/purkle.c index 6c211c0..3ad776b 100644 --- a/src/purkle/purkle.c +++ b/src/purkle/purkle.c | |||
@@ -7,6 +7,7 @@ | |||
7 | static const char *ourName = "purkle"; | 7 | static const char *ourName = "purkle"; |
8 | static int skang, _M; | 8 | static int skang, _M; |
9 | static Widget *entry, *history; | 9 | static Widget *entry, *history; |
10 | static winFang *me; | ||
10 | 11 | ||
11 | static winFang *purkleAdd(winFang *parent, int w, int h, EPhysics_World *world) | 12 | static winFang *purkleAdd(winFang *parent, int w, int h, EPhysics_World *world) |
12 | { | 13 | { |
@@ -78,7 +79,7 @@ int luaopen_purkle(lua_State *L) | |||
78 | world = gl->world; | 79 | world = gl->world; |
79 | } | 80 | } |
80 | 81 | ||
81 | purkleAdd(parent, 500, 420, world); | 82 | if (!me) me = purkleAdd(parent, 500, 420, world); |
82 | push_lua(L, "@ ( = )", skang, MODULEEND, _M, 0); | 83 | push_lua(L, "@ ( = )", skang, MODULEEND, _M, 0); |
83 | 84 | ||
84 | // Return _M, the table itself, not the index. | 85 | // Return _M, the table itself, not the index. |