1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 11:42:21 +00:00
Commit graph

2000 commits

Author SHA1 Message Date
Jon Trulson
297918bb56 dtprintinfo: try to mitigate some stupid in ParseJob.C for sun
Marco Ivaldi pointed me to some unsafe code in ParseJob.c.  I do not
have a sun machine (well, not currently operational anyway), so the
code is not tested.  But seriously, this is some horrible code.  This
local parser for sun needs to be rewritten!
2021-06-02 19:56:28 -06:00
WHR
0b7849e210 Remove uses of ar(1) option '-l' 2021-06-02 19:56:28 -06:00
WHR
5ef46edd2f Break building on subdirectories make(1) failed 2021-06-02 19:56:28 -06:00
Liang Chang
7cd4221824 ttsnoop: check the return value from tt_message_op to avoid a segmentation
fault.
2021-06-02 19:56:28 -06:00
Liang Chang
75a4e93d38 ttsnoop: adjust data types to ensure the result of pointer comparison is
correct.
2021-06-02 19:56:28 -06:00
Liang Chang
a25a32157f ttsnoop: adjust the text field on ttChooser. 2021-06-02 19:56:28 -06:00
Liang Chang
056afeb35a dtappbuilder: fix the rendering glitch of the list widget which contains a
label.
2021-06-02 19:56:28 -06:00
Liang Chang
6dcbe6275d dtappbuilder: fix issues of property settings for text field. 2021-06-02 19:56:28 -06:00
Liang Chang
f203067211 dtappbuilder: fix issues of property settings for term pane. 2021-06-02 19:56:28 -06:00
Liang Chang
8d6262ca3e dtappbuilder: fix issues of property settings for spin box. 2021-06-02 19:56:28 -06:00
Liang Chang
808ce58e3d dtappbuilder: fix issues of property settings for separator. 2021-06-02 19:56:28 -06:00
Liang Chang
8c4375d435 dtappbuilder: fix issues of property settings for scale. 2021-06-02 19:56:28 -06:00
Liang Chang
ade018eb79 dtappbuilder: fix issues of property settings for menubar. 2021-06-02 19:56:28 -06:00
Liang Chang
c8116cae70 dtappbuilder: fix issues of property settings for menu. 2021-06-02 19:56:28 -06:00
Liang Chang
16b11c143c dtappbuilder: fix issues of property settings for main window. 2021-06-02 19:56:28 -06:00
Liang Chang
f266789703 dtappbuilder: fix issues of property settings for label. 2021-06-02 19:56:28 -06:00
Liang Chang
c99824a47a dtappbuilder: fix issues of property settings for group. 2021-06-02 19:56:28 -06:00
Liang Chang
18d195cdf5 dtappbuilder: fix issues of property settings for file selection dialog. 2021-06-02 19:56:28 -06:00
Liang Chang
6b93ec7733 dtappbuilder: fix issues of property settings for draw area pane. 2021-06-02 19:56:28 -06:00
Liang Chang
49136ea0b6 dtappbuilder: fix issues of property settings for custom dialog. 2021-06-02 19:56:28 -06:00
Liang Chang
a179685eab dtappbuilder: fix issues of property settings for control pane. 2021-06-02 19:56:28 -06:00
Liang Chang
7cd96a802d dtappbuilder: fix issues of property settings for combo box. 2021-06-02 19:56:28 -06:00
Liang Chang
06596f9cf8 dtappbuilder: fix issues of property settings for choice. 2021-06-02 19:56:28 -06:00
Liang Chang
c5ca7bca30 dtappbuilder: fix issues of property settings for button. 2021-06-02 19:56:28 -06:00
Liang Chang
606225bef2 dtappbuilder: fix issues of property settings for list. 2021-06-02 19:56:28 -06:00
Liang Chang
d42a89232a dtappbuilder: adjust data types to avoid type casting errors. 2021-06-02 19:56:28 -06:00
Liang Chang
a64fc5192c dtappbuilder: fix issues of property settings for text pane. 2021-06-02 19:56:27 -06:00
Liang Chang
c26c2e75ad dtappbuilder: adjust data types to avoid type casting errors. 2021-06-02 19:56:27 -06:00
Liang Chang
d6ad977ba7 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-06-02 19:56:27 -06:00
Liang Chang
cdf48013e0 dtappbuilder: ensure the subtypes of widgets are properly initialized. 2021-06-02 19:56:27 -06:00
Liang Chang
ff952fcfbc dtcm: Avoid to leave an unclosable window when there is no appointment in
"Appointment List...".
2021-06-02 19:56:27 -06:00
Liang Chang
fc118ea6f8 dtfile: fix a segmentation fault that occurred when drag and drop file with the
same name.
2021-06-02 19:56:27 -06:00
Liang Chang
e7402803df dtcm: fix a segfault that occurred when opening the "Appointment List..." in
the "View" menu.
2021-06-02 19:56:26 -06:00
Liang Chang
4190143c91 dtcm: fix a segfault when "Drag Appt" in the dtcm_editor. 2021-06-02 19:56:26 -06:00
Liang Chang
d428d68edb csa: replace sprintf with asprintf to avoid segfaults. 2021-06-02 19:56:26 -06:00
Liang Chang
9e4ad4b2f4 dtappbuilder: fix a segmentation fault that occurred when clicking "Edit" in
the "Menu Property Editor".
2021-06-02 19:56:26 -06:00
Liang Chang
49185f2624 dtappbuilder: fix a segmentation fault that occurred when repeating "Add Item"
-> "Delete" -> "Add Item" in the "Revolving Property Editor".
2021-06-02 19:56:26 -06:00
Liang Chang
920465cb5b dtappbuilder: fix a segmentation fault that occurred when clicking "Edit" in
the "Revolving Property Editor".
2021-06-02 19:56:26 -06:00
Liang Chang
4389fdd633 dtappbuilder: apply graceful degradation for font loading to avoid a
segmentation fault.
2021-06-02 19:56:26 -06:00
Liang Chang
1b1078ba7d ttsnoop: fix a segfault that occurred when clicking "Version..." in the "Snoop"
menu.
2021-06-02 19:56:26 -06:00
Lev Kujawski
39a72ca69b Specify SPARC and SPARC64 as big endian platforms
config/cf/DtInfo.tmpl: Modify ByteOrderDefines define
2021-06-02 19:56:26 -06:00
Lev Kujawski
a4d9902a48 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-06-02 19:56:26 -06:00
Lev Kujawski
356ac2f327 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-06-02 19:56:26 -06:00
Lev Kujawski
1f52f5ca81 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-06-02 19:56:26 -06:00
Jon Trulson
14eb374e0a .gitignore: Add some MsgCat.c generated files 2021-06-02 19:56:26 -06:00
Lev Kujawski
a6ea2a2d52 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-06-02 19:55:15 -06:00
Lev Kujawski
3379999106 dtinfo: rename the CATGETS macro to MCATGETS 2021-06-02 19:51:24 -06:00
Lev Kujawski
fc1d29be81 config/cf/Imake.cf: Define AArch64Architecture on the BSDs. 2021-06-02 19:51:24 -06:00
Jon Trulson
7b79d810eb dthelp/parser: disable parallel building 2021-06-01 18:23:46 -06:00
Jon Trulson
9f5021a81f pm_randon.h: fix conversion warning (int to float) 2021-06-01 18:23:46 -06:00