summaryrefslogtreecommitdiffstats
path: root/src/tk/box.c
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-08-06 01:55:22 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-08-06 01:55:22 (EDT)
commitff4f77ec223c5a0b1a015789d34177d8ddb4a4b2 (patch)
tree8917dd93a0270ea037cd83427d5a1e9af39930c7 /src/tk/box.c
parent592ee2f218f1886decc478c3353810c7c11b51d3 (diff)
downloadmazefight-ff4f77ec223c5a0b1a015789d34177d8ddb4a4b2.zip
mazefight-ff4f77ec223c5a0b1a015789d34177d8ddb4a4b2.tar.gz
mazefight-ff4f77ec223c5a0b1a015789d34177d8ddb4a4b2.tar.bz2
tk: Add container pointer to widget
Diffstat (limited to 'src/tk/box.c')
-rw-r--r--src/tk/box.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tk/box.c b/src/tk/box.c
index ced5b3c..10a4ec3 100644
--- a/src/tk/box.c
+++ b/src/tk/box.c
@@ -132,5 +132,7 @@ mftk_box_new(int container_w, int container_h, int own_w, int own_h,
b->bg_color = bg_color;
b->child = child;
+ child->container = w;
+
return w;
}