Is there an xsetroot type program for SunView?

Paul Kranenburg rulcs!pk at relay.eu.net
Thu Dec 21 11:25:32 AEST 1989


In article <3788 at brazos.Rice.edu> ntmtv!thompson at ames.arc.nasa.gov (Michael Thompson) writes:
>X-Sun-Spots-Digest: Volume 8, Issue 217, message 11 of 23
>
>Is there a small SunView utility program which will allow a person to set
>the root background raster image if SunView is already running.  For X
>Windows, the utility program 'xsetroot -bitmap filename' does this.  I am
>looking for the same capability for SunView.  
>
>It is too bad, but it seems that a background raster file can only be
>loaded when SunView is first started up.  Am I right in this assumption?

I don't know if it can be done with an auxiliary program. You can,
however, hack your way into the base program itself
(/usr/src/sun/suntool/suntools.c).  This is just what I have done, it
involves defining some new "keywords" in the rootmenu file (like REFRESH
and EXIT), eg.:

 "New Background"       BACKGRND
 "New Icon"             BACKGRND_ICON

when choosen, the current selection is inspected. If it is the name of a
regular file, this file will be loaded as a new background image or icon.
If it is a directory , it will be retained for future file lookups.
Default directories can also be specified using the User Default Database
mechanism that comes with Sunview.

Cheers, Paul Kranenburg.

[[Ed's Note: Diffs for 4.0.3 placed in archives.]]

FTP:	Hostname : titan.rice.edu (128.42.1.30)
	Directory: sun-source
	Filename : suntools.c.diffs

Archive Server Address: archive-server at rice.edu
Archive Server Command: send sun-source suntools.c.diffs



More information about the Comp.sys.sun mailing list