🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.archives
Article #5874

[comp.sys.sun] xsetroot style diffs for suntools

#5874
From: Paul Kranenburg
Date: Mon, 08 Jan 1990 20:06
44 lines
2435 bytes
Archive-name: titan/sun-source/suntools.c.diffs
Original-posting-by: rulcs!pk@relay.eu.net (Paul Kranenburg)
Original-subject: Re: Is there an xsetroot type program for SunView?
Archive-site: titan.rice.edu [128.42.1.30]
Archive-directory: sun-source
Archive-files: suntools.c.diffs
Reposted-by: emv@math.lsa.umich.edu (Edward Vielmetti)

In article <3788@brazos.Rice.edu> ntmtv!thompson@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@rice.edu
Archive Server Command: send sun-source suntools.c.diffs
Technical Details
Message-ID: <10572@stag.math.lsa.umich.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!umich!sharkey!math.lsa.umich.edu!emv
References: <4042@brazos.Rice.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!umich!sharkey!math.lsa.umich.edu!emv
From: rulcs!pk@relay.eu.net (Paul Kranenburg)
Newsgroups: comp.archives
Subject: [comp.sys.sun] xsetroot style diffs for suntools
Message-ID: <10572@stag.math.lsa.umich.edu>
Date: 8 Jan 90 20:06:43 GMT
References: <4042@brazos.Rice.edu>
Sender: news@math.lsa.umich.edu
Reply-To: rulcs!pk@relay.eu.net (Paul Kranenburg)
Followup-To: comp.sys.sun
Lines: 44
Approved: emv@math.lsa.umich.edu (Edward Vielmetti)