summaryrefslogtreecommitdiffstats
path: root/src/tk/box.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tk/box.c')
-rw-r--r--src/tk/box.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/tk/box.c b/src/tk/box.c
index 10a4ec3..d13982d 100644
--- a/src/tk/box.c
+++ b/src/tk/box.c
@@ -51,6 +51,14 @@ _mftk_box_layout(struct mftk_widget *w)
b->child_y = (b->container_h - w->h) / 2 + b->padding;
}
+static void
+_mftk_box_index(struct mftk_widget *w, struct mftk_window *win)
+{
+ struct mftk_box *b = (struct mftk_box *) w;
+
+ mftk_window_index(win, b->child);
+}
+
static int
_mftk_box_event(struct mftk_widget *w, SDL_Event *e, int x, int y)
{
@@ -122,7 +130,7 @@ mftk_box_new(int container_w, int container_h, int own_w, int own_h,
struct mftk_widget *w;
struct mftk_box *b;
- mftk_widget_init(w, b, box);
+ mftk_widget_init_container(w, b, box);
b->container_w = container_w;
b->container_h = container_h;