From 8e076e164a99038600ea2aa270efd91d4e3a4c9b Mon Sep 17 00:00:00 2001 From: Liang Chang Date: Fri, 19 Feb 2021 05:39:16 +0800 Subject: [PATCH] dtappbuilder: fix the rendering glitch of the list widget which contains a label. --- cde/programs/dtappbuilder/src/abmf/instances.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/cde/programs/dtappbuilder/src/abmf/instances.c b/cde/programs/dtappbuilder/src/abmf/instances.c index a1cc09f15..05b0ba7ee 100644 --- a/cde/programs/dtappbuilder/src/abmf/instances.c +++ b/cde/programs/dtappbuilder/src/abmf/instances.c @@ -1700,7 +1700,17 @@ write_list(GenCodeInfo genCodeInfo, ABObj list) int i; write_convert_strings_to_xmstrings(genCodeInfo, list); - genCodeInfo->cur_func.create_obj = list; + + /* + * genCodeInfo->cur_func.create_obj = list; + * + * TODO: Figure out the history of the above line. + * The original file contains this line. + * Actually, it breaks the hierarchy of widgets. + * Comment out it to make the list widget with a label to be rendered + * properly. + */ + write_create_widget_by_non_va_conv_func( genCodeInfo, list, "XmCreateScrolledList", FALSE);