1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00
Commit graph

1669 commits

Author SHA1 Message Date
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
Jon Trulson
d2945db4cc ksh93: update to 66e1d446 from autotools branch 2021-01-31 16:15:25 -07:00
Lev Kujawski
9a695e9411 dtprintinfo: don't use rresvport() on Linux systems using the musl C library
Disable binding a privileged client port with rresvport() on Linux
systems using the musl C library, where that function is
unsupported. If there is a need for XPrint support, a BSD-licensed
implementation of rresvport() is available in the portable edition of
OpenSSH.
2021-01-30 17:22:27 -07:00
Lev Kujawski
f7227e1b74 dtinfo: Include config.h for the definition of u_int
Also, properly include unistd.h as a system header.
2021-01-30 17:22:12 -07:00
Lev Kujawski
c2d2accbad dtinfo: the musl C library requires the inclusion of the POSIX fcntl header 2021-01-30 17:21:57 -07:00
Lev Kujawski
668b9c19a3 dtdocbook/instant: the musl C library does not define MAXNAMLEN
Use the POSIX alternative NAME_MAX instead.
2021-01-30 17:21:16 -07:00
Lev Kujawski
21491c0e52 imake: fix warnings on PowerPC builds
Also correct a compile failure occurring within DtMmdb's
atoi_pearson.C by defining PowerPC as a big endian platform.
2021-01-30 17:20:59 -07:00
Jon Trulson
6245f4fe7a README: update clone instructions 2021-01-30 17:12:10 -07:00
Jon Trulson
eb381022a5 Change version to 2.3.2b for the new ksh93 submodule merge 2021-01-30 16:32:41 -07:00
Jon Trulson
6539c8c71a ksh93: re-add the ksh submodule at 47468f 2021-01-23 18:40:40 -07:00
Jon Trulson
047cefcf32 Merge branch 'master' into master-ksh93-upgrade 2021-01-23 18:31:28 -07:00
Chase
eab8cf4c16 dtksh: update ksh to commit 47468f (fix musl compiler errors) 2021-01-23 17:13:46 -07:00
Lev Kujawski
e54ee036ac Fix incompatibilites between the Desktop Korn Shell and the musl C library:
- Only check for POSIX's termios.h when deciding to use the POSIX terminal interfaces.
- Check for C99's va_copy in addition to __va_copy.
2021-01-23 16:39:44 -07:00
Chase
ad39eebb2d dtksh: use std malloc instead of ast malloc 2021-01-18 18:02:11 -07:00
Chase
47dfe49a72 dtksh: make it build under openindiana 2021-01-18 18:00:41 -07:00
Chase
e75a8162ad dtksh/Imakefile: make patch obey POSIX 2021-01-18 18:00:41 -07:00
Jon Trulson
007b6fa023 udbParseLib.awk: comment out some uneeded commands that cause warnings now 2021-01-15 19:06:38 -07:00
Lev Kujawski
225522cc6b Define time_t within AccessI.h by including <time.h>. 2021-01-15 18:33:26 -07:00
Lev Kujawski
325132735b Use the C99 standard va_copy if possible for compatibility with the musl C library. 2021-01-10 18:08:00 -07:00
Lev Kujawski
13c173d22c On Linux, use SVR4's (now POSIX) mktime() instead of BSD's non-standard timelocal(). 2021-01-10 18:08:00 -07:00
Lev Kujawski
0e282a0ad7 On Linux, use the SVR4 (now POSIX) signal and locking interfaces instead of the non-standard BSD equivalents. 2021-01-10 18:08:00 -07:00
Lev Kujawski
5c801a07a0 Hide FILE internals from the musl C library that conflict with the Desktop Korn Shell's SFIO. 2021-01-10 18:08:00 -07:00
Lev Kujawski
d14d956c00 Rename functions within ToolTalk that conflict with the musl C library headers. 2021-01-10 18:08:00 -07:00
Lev Kujawski
5d5523fd6a Define _DtPLATFORM_MAX_LEN for C libraries (including musl) that do not provide the SVID SYS_NMLN definition. Use sizeof() to replace another #ifdef. 2021-01-10 18:08:00 -07:00
Chase
10f2382561 dtksh/findsym.c: fix compiler warnings 2021-01-01 18:41:26 -07:00
Chase
428223ee80 use a patchfile to augment init.c instead of copying it entirely 2021-01-01 18:41:26 -07:00
Chase
90fff44682 dtksh: use bin/package flat make instead of shell
Shell isn't portable, so upstream ksh93 has a "flat" function that we can use
to put binaries in a static place that doesn't require a shell command. We still
do need an intermediate setup.sh shell script due to a bug in ksh that object
files aren't being put in lib, and FEATURE not in include. We also cut out some
 unused symbols, and a hpux specific implementation of dynlib (new hpux should
 conform to the posix implementation anyhow.)
2021-01-01 18:41:26 -07:00
Liang Chang
12f2fb1f10 dtdocbook: fix a segmentation fault. 2021-01-01 03:07:37 +08:00
Liang Chang
bc39b47162 dtopen: fix the syntax errors of comment. 2020-12-29 00:20:37 +08:00
Chase
f884dce398 dtkcmds.c: use Empty macro instead of empty string 2020-12-13 17:45:39 -07:00