# HG changeset patch # User Olaf Wintermann <olaf.wintermann@gmail.com> # Date 1738875794 -3600 # Node ID 4ea4bb379273f3d8c74742c4a6218bc6f4ba885a # Parent a39bd7d2410472ca2898d91c2af629ed2ad3297b limit textarea width (Motif) diff -r a39bd7d24104 -r 4ea4bb379273 ui/motif/Grid.c --- a/ui/motif/Grid.c Wed Feb 05 23:10:09 2025 +0100 +++ b/ui/motif/Grid.c Thu Feb 06 22:03:14 2025 +0100 @@ -548,6 +548,8 @@ Dimension actual_width, actual_height; w->mywidget.sizerequest = TRUE; + //printf("sizerequest: %d x %d\n", (int)req_width, (int)req_height); + //XtWidgetGeometry request; //request.width = req_width; //request.request_mode = CWWidth; diff -r a39bd7d24104 -r 4ea4bb379273 ui/motif/text.c --- a/ui/motif/text.c Wed Feb 05 23:10:09 2025 +0100 +++ b/ui/motif/text.c Thu Feb 06 22:03:14 2025 +0100 @@ -49,6 +49,7 @@ Widget parent = ctn->prepare(ctn, xargs, &n); char *name = args.name ? (char*)args.name : "textarea"; + XtSetArg(xargs[n], XmNwidth, 100); n++; Widget widget = XmCreateScrolledText(parent, name, xargs, n); XtManageChild(widget);