Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!rochester!kodak!ispd-newsserver!jeffv From: jeffv@bisco.kodak.com (Jeff Van Epps) Newsgroups: comp.windows.x Subject: Re: OpenWindows: olwm icons Message-ID: <1991Jan7.222132.1402@ssd.kodak.com> Date: 7 Jan 91 22:21:32 GMT Sender: news@ssd.kodak.com Reply-To: jeffv@bisco.kodak.com (Jeff Van Epps) Followup-To: comp.windows.x Organization: Eastman Kodak Lines: 54 In article <9101050132.AA20784@trantor.Eng.Sun.COM> smarks@eng.sun.COM (Stuart Marks) writes: > > jeffv@bisco.kodak.com (Jeff Van Epps) writes: > | Can anyone tell me how to associate icons with applications when running > | OpenWindows 2.0 with the olwm window manager? With the applications I'm > | interested in I can't use the XView command line arguments -icon_image or > | -WI because they aren't XView applications (stuff from the MIT X11R4 > | distribution, like xterm). So it has to be done in .Xdefaults. > | > | The XView man page (or excuse for one anyway) says that the resource name > | is "Icon.Pixmap". I've tried every permutation I could think of, in > | the .Xdefaults and after "xterm -xrm", but nothing works. > > I use > > xterm -xrm "XTerm*iconPixmap: $HOME/lib/bitmaps/letters" > > under olwm, and it works OK. In my .Xdefaults file, I have an entry of > the form > > XTerm*iconPixmap: /usr/parkway/smarks/lib/bitmaps/xterm > > and it works, too. > > In general, you can't use XView-style command line options and resources > with non-XView programs. Xterm is an Xt-based application, and it uses > Xt-style command line options and resources. Other Xt clients, xclock for > instance, also respond to the iconPixmap resource. Thanks to the several people who replied suggesting the same method. Xterm is my primary application, and this does work, so most of my problem is solved. However there are other applications which don't seem to use Xt (Xlib only I think), and of course they don't use "iconPixmap". Under mwm I could set their icon images with Mwm*applicationname.iconImage: foo.xbm Is there no corresponding method under olwm? Generally, is there any other way of solving these questions than "ask the net"? After getting the "iconPixmap" answer I grepped thru man3 from X11R4 and didn't find any references other than something in XAWMHints that looked like it could be used in coding an X application but wasn't clear about how to set the pixmap from a resource file. How did you folks know that Xt clients responded to "iconPixmap"? It looks to me like XTerm*iconPixmap has nothing at all to do with XView's Icon.Pixmap. Please correct me if I'm wrong. -- If the From: line says nobody@kodak.com, don't believe it. Jeff Van Epps jeffv@bisco.kodak.com rochester!kodak!bisco!jeffv