Commit Graph

1698 Commits

Author SHA1 Message Date
Jon Trulson cdffbc9b69 videoTypes.dt: remove duplicate LABEL field 2021-02-28 21:03:18 -07:00
Jon Trulson a32227a55d Merge /u/low-power/cde-code/ branch remove-ar-l into master
https://sourceforge.net/p/cdesktopenv/code/merge-requests/25/
2021-02-23 03:15:37 +00:00
WHR ec123a6c3f Remove uses of ar(1) option '-l' 2021-02-22 21:34:06 +08:00
WHR 2b0c66f77e Break building on subdirectories make(1) failed 2021-02-22 21:11:16 +08:00
Liang Chang eb83fca4b7 ttsnoop: check the return value from tt_message_op to avoid a segmentation
fault.
2021-02-20 01:35:13 +08:00
Liang Chang 09d3c8d6ee ttsnoop: adjust data types to ensure the result of pointer comparison is
correct.
2021-02-20 00:57:33 +08:00
Liang Chang 170a649363 ttsnoop: adjust the text field on ttChooser. 2021-02-19 05:58:17 +08:00
Liang Chang 8e076e164a dtappbuilder: fix the rendering glitch of the list widget which contains a
label.
2021-02-19 05:39:16 +08:00
Liang Chang fb0bedaa48 dtappbuilder: fix issues of property settings for text field. 2021-02-17 20:47:00 +08:00
Liang Chang 60b0fc29a9 dtappbuilder: fix issues of property settings for term pane. 2021-02-17 20:33:08 +08:00
Liang Chang ffe857f6ca dtappbuilder: fix issues of property settings for spin box. 2021-02-17 20:22:00 +08:00
Liang Chang a52f25b081 dtappbuilder: fix issues of property settings for separator. 2021-02-17 20:09:19 +08:00
Liang Chang 69fbdb771b dtappbuilder: fix issues of property settings for scale. 2021-02-17 19:41:04 +08:00
Liang Chang fbb7e865a7 dtappbuilder: fix issues of property settings for menubar. 2021-02-17 19:23:52 +08:00
Liang Chang 523c440536 dtappbuilder: fix issues of property settings for menu. 2021-02-17 19:14:51 +08:00
Liang Chang 1b143dd7a7 dtappbuilder: fix issues of property settings for main window. 2021-02-17 18:53:26 +08:00
Liang Chang 933d48e589 dtappbuilder: fix issues of property settings for label. 2021-02-17 18:41:35 +08:00
Liang Chang 471afeaa2c dtappbuilder: fix issues of property settings for group. 2021-02-17 18:17:04 +08:00
Liang Chang 26508f3f76 dtappbuilder: fix issues of property settings for file selection dialog. 2021-02-17 09:23:18 +08:00
Liang Chang d22ec65675 dtappbuilder: fix issues of property settings for draw area pane. 2021-02-17 08:37:03 +08:00
Liang Chang 213ae1f8d7 dtappbuilder: fix issues of property settings for custom dialog. 2021-02-17 08:20:51 +08:00
Liang Chang 0d92904b06 dtappbuilder: fix issues of property settings for control pane. 2021-02-17 08:08:16 +08:00
Liang Chang feb4d1b495 dtappbuilder: fix issues of property settings for combo box. 2021-02-17 07:54:41 +08:00
Liang Chang 4cbb0506dc dtappbuilder: fix issues of property settings for choice. 2021-02-17 07:42:04 +08:00
Liang Chang 473bb74440 dtappbuilder: fix issues of property settings for button. 2021-02-17 07:24:03 +08:00
Liang Chang a9d7c58bd6 dtappbuilder: fix issues of property settings for list. 2021-02-17 06:38:27 +08:00
Liang Chang a90c07f027 dtappbuilder: adjust data types to avoid type casting errors. 2021-02-17 06:19:02 +08:00
Liang Chang 73cab75511 dtappbuilder: fix issues of property settings for text pane. 2021-02-17 01:59:40 +08:00
Liang Chang 0cdf0f774f dtappbuilder: adjust data types to avoid type casting errors. 2021-02-17 01:52:47 +08:00
Liang Chang 64cfdf3213 dtappbuilder: ensure mouse operations are not interfering by key masks (e.g.,
Caps Lock, Num Lock, etc.) when editing (resize, double-click, etc.) widgets.
2021-02-16 17:40:05 +08:00
Liang Chang 1fcba2048b dtappbuilder: ensure the subtypes of widgets are properly initialized. 2021-02-15 21:18:27 +08:00
Liang Chang 49b92e63a7 dtcm: Avoid to leave an unclosable window when there is no appointment in
"Appointment List...".
2021-02-15 01:46:25 +08:00
Jon Trulson f171814fa4 Merge /u/l-chang/cdesktopenv1/ branch master into master
https://sourceforge.net/p/cdesktopenv/code/merge-requests/22/
2021-02-14 20:37:30 +00:00
Lev Kujawski 61436fbe97 Specify SPARC and SPARC64 as big endian platforms
config/cf/DtInfo.tmpl: Modify ByteOrderDefines define
2021-02-13 19:13:21 -07:00
Liang Chang 80f7fe7739 dtfile: fix a segmentation fault that occurred when drag and drop file with the
same name.
2021-02-13 02:23:01 +08:00
Liang Chang 49b5505667 dtcm: fix a segfault that occurred when opening the "Appointment List..." in
the "View" menu.
2021-02-12 20:06:54 +08:00
Liang Chang a27d05f788 dtcm: fix a segfault when "Drag Appt" in the dtcm_editor. 2021-02-12 20:06:54 +08:00
Liang Chang 431e90db13 csa: replace sprintf with asprintf to avoid segfaults. 2021-02-12 20:06:54 +08:00
Liang Chang d7445d1179 dtappbuilder: fix a segmentation fault that occurred when clicking "Edit" in
the "Menu Property Editor".
2021-02-12 20:05:55 +08:00
Liang Chang 97bfb63551 dtappbuilder: fix a segmentation fault that occurred when repeating "Add Item"
-> "Delete" -> "Add Item" in the "Revolving Property Editor".
2021-02-12 19:24:50 +08:00
Liang Chang a3d1e17c32 dtappbuilder: fix a segmentation fault that occurred when clicking "Edit" in
the "Revolving Property Editor".
2021-02-12 19:04:32 +08:00
Liang Chang bb0b2838a5 dtappbuilder: apply graceful degradation for font loading to avoid a
segmentation fault.
2021-02-12 19:03:09 +08:00
Liang Chang 7b2aae0911 ttsnoop: fix a segfault that occurred when clicking "Version..." in the "Snoop"
menu.
2021-02-12 18:42:19 +08:00
Lev Kujawski 210a8327f2 Switch default backdrop from SkyLight to KnitLight
programs/dtwm/Dtwm.defs.src: Update default Dtwm backdrop
localized/*/app-defaults/Dtwm.tmsg: Update translations to reflect change

For CDE users with sufficiently high resolution screens, the abrupt
transition towards the end of the default SkyLight backdrop image bore
a close enough resemblance to graphical corruption to spur bug
reports. This problem likely did not manifest to the original CDE
developers using the typical monitors of the 1990s.

This patch changes the default backdrop to KnitLight, which comports
well with CDE's low distraction UI while still offering something
visually interesting enough to showcase CDE's support for bitmap
backdrops. Because of the repeating pattern within KnitLight, this
problem will not occur in the future. Additionally, SkyLight will be
retained as a CDE backdrop.
2021-02-07 18:46:25 -07:00
Lev Kujawski 3685f61cfa Purge unused Freetype dependency from CDE
config/cf/{DragonFly,OpenBSD,darwin}.cf: Remove Freetype imake settings
config/cf/darwinLib.tmpl: Do not link against Freetype
debian/control: Remove Freetype and Xft dependencies
*/Imakefile: Purge Freetype includes

lib/DtWidget/ComboBoxP.h
lib/DtWidget/SpinBoxP.h
programs/dtfile/ChangeDirP.c
programs/dtlogin/vgcallback.c
    Undefine USE_XFT so Motif 2.3 doesn't pull in Freetype

CDE included Freetype and Xft solely to satisfy builds of Motif with
Xft support enabled. However, as CDE only supports bitmap fonts, this
dependency was entirely superfluous and unnecessarily broke backwards
compatibility with older systems.
2021-02-07 18:46:25 -07:00
Lev Kujawski de23f29722 Avoid Global Offset Table (GOT) limits by enabling -fPIC on the BSDs.
config/cf/bsdLib.rules: Switch -fpic to -fPIC
lib/DtXinerama/Imakefile: Use $(PICFLAGS) instead of -fpic

Several tickets have been opened by users encountering the low 8KiB
GOT limit on SPARC systems running BSD. This change makes CDE builds
on BSD more consistent with those on Linux, where -fPIC has been the
default without any reported issues.
2021-02-02 19:08:28 -07:00
Jon Trulson fc1befe8d9 .gitignore: Add some MsgCat.c generated files 2021-01-31 18:31:06 -07:00
Lev Kujawski 7010b2c11b Centralize catgets() calls through MsgCat
CDE has relied upon catgets() implementations following a relaxed
interpretation of the XPG internationalization standard that ignored
-1, the standard error value returned by catopen, as the catalog
argument. However, this same behavior causes segmentation faults with
the musl C library.

This patch:

- Centralizes (with the exception of ToolTalk) all calls to catopen(),
  catgets(), and catclose() through MsgCat within the DtSvc library.
- Prevents calls to catgets() and catclose() that rely upon
  undefined behavior.
- Eliminates a number of bespoke catgets() wrappers, including multiple
  redundant caching implementations designed to work around a design
  peculiarity in HP/UX.
- Eases building CDE without XPG internationalization support by providing
  the appropriate macros.
2021-01-31 16:17:13 -07:00
Lev Kujawski 8278e0eae3 dtinfo: rename the CATGETS macro to MCATGETS 2021-01-31 16:17:05 -07:00
Lev Kujawski c56f6320ae config/cf/Imake.cf: Define AArch64Architecture on the BSDs. 2021-01-31 16:15:51 -07:00