commit 3626db3888ee3f259f56ce71c7ee860546a73093
Author: Simon Howard <fraggle@soulsphere.org>
AuthorDate: Thu Jun 9 23:10:59 2016 -0400
Commit: Simon Howard <fraggle@soulsphere.org>
CommitDate: Thu Jun 9 23:10:59 2016 -0400
textscreen: Set parent pointer for conditionals.
We rely on the parent pointer to determine if the widget is being
hovered over. Set the parent pointer so that the background is set
properly for a widget in a conditional container.
---
textscreen/txt_conditional.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/textscreen/txt_conditional.c b/textscreen/txt_conditional.c
index a341080d..8a23618c 100644
--- a/textscreen/txt_conditional.c
+++ b/textscreen/txt_conditional.c
@@ -141,6 +141,8 @@ txt_conditional_t *TXT_NewConditional(int *var, int expected_value,
conditional->expected_value = expected_value;
conditional->child = child;
+ child->parent = &conditional->widget;
+
return conditional;
}