[2785] in Release_Engineering
xlogin changes
daemon@ATHENA.MIT.EDU (vanharen@MIT.EDU)
Tue Apr 21 10:04:47 1992
From: vanharen@MIT.EDU
Date: Tue, 21 Apr 92 10:04:34 EDT
To: mar@MIT.EDU
Cc: rel-eng@MIT.EDU
Mark,
Here are my changes to xlogin... if you can "audit" them and
incorporate them into your code and then give Ezra and Lucien the
go-ahead, that would be great.
I've been stuffing things under /afs/net/project/uimx/xlogin/src
for lack of better space.
In there you will find:
FILES CHANGES
---------------------------------------------------------------------
wcl/
WcActions.c removed an unused static var, and added
some casts to make compilers happy.
WcCallb.c removed an unused var, commented out
some code to make hc happy.
WcCreate.c initialized an automatic variable to
make saber happy.
WcName.c changed the declaration of one function
to match all the rest (non-ANSI
style)
xlogin/
Imakefile changes necessary to support new files
and new "bitmaps" subdir
AriRegAll.c ripped out #ifdef'ed code and some
unused code -- this will make
xlogin smaller.
SmeBSBP.h
SmeBSB.c
SmeBSB.h new files - code from Xaw, with resource
added so that "Information" and
"Other" in pull-down menu are
not highlight-able.
StringToPixel.c new file - color converter similar to
dash.
Xlogin*.presed resource file generally cleaned up, and
new section at bottom added
where colors are specified, with
warning
(Mark, you will need to tweak
this file to put in the colors
you decided on)
bitmaps/ new directory, for storing 'em all --
all old bitmaps are shoved
there, and the Imakefile and
resource file(s) tweaked accordingly.
Shift-F{1,2,3,4,5,6,7,8,9}
F{1,2,3,4,5,6}
Ctrl-P
Prev new bitmaps -- used for displaying
accelerators in the pull-down menus.
xlogin.8 changed manpage -- added documentation
of new resources, removed "BUGS"
section, updated copyright,
fixed some formatting problems
(options were not showing up
correctly)
xlogin.c This is the Biggy... most changes took
place here. I'll drop out of
this mode of typing now and make
an itemized list.
----- xlogin.c changes -----
- adds converter from "StringToPixel" above
- new resource "blankAllScreens", and command-line switches "-blankall"
and "-noblankall" that determine whether to blank extra screens
(up to 9) when the idle screensaver kicks in. default is TRUE.
- new resource "loginName", a string to be displayed in the Username
field on un-saving. Note that there is no command-line switch
for this option -- this is to encourage people to put this
customization in a ".Xlogin.local" file, and then the clean-up
script can check for this file. If we only document it this
way, maybe people will not think to do hacks with this feature.
- new resource "showMotd" which determines whether or not to display
the global motd in the xlogin idle screen. (Currently the motd
file is a hard-coded path to reduce hackability.)
defaults to TRUE.
- removed some unecessary code/variables and added some casts.
- added mouse-warping on login to place mouse within likely area of
initial xterm and/or many other user's xterms and/or placement
of xterm gotten by doing a "terminal style login". (warping to
300, 300 manages to fall within all of those regions :-)
- changed loading of logo and "eyes" bitmaps to use an Xmu function,
which supports the bitmapFilePath global resource -- makes it
easier to scatter bitmaps around, if we need/want to.
Code compiles and runs on all platforms (sun, vax, rt, dec, rsaix), to
the best of my recollection.
Stripped binary is 2K larger on vax and rt, same size on dec.
140K on rios, though there must be something else going on here (R4 vs
R3 libs?). Comparison on sun is N/A.
17 new bitmaps at 1 block each, so at worst we need 19K more space than
before on the root partition. Will this be a problem?
-C.