Thread View: gnu.epoch.misc
2 messages
2 total messages
Started by Douglas K. Rand
Sun, 19 May 1991 02:56
GWM won't name my Epoch icons correctly
Author: Douglas K. Rand
Date: Sun, 19 May 1991 02:56
Date: Sun, 19 May 1991 02:56
36 lines
2154 bytes
2154 bytes
I'm using the following code to set my window and icon names in Epoch.
I set my window names to be the buffer name with "@ <hostname>" after
it. My icon names are just the buffer names. (I hate wide icons!)
GWM changes my window names for me just fine. They get out of sync
once in a while, but I think that that is a problem with Epoch not
calling the set-window-buffer-hook often enough.
Ok. So not I've got a window with ".profile.gwm @ phoenix" at the top.
"M-ESC (title)" returns the same string. "M-ESC (icon-name" returns
".profile.gwm", just like it should. But when I iconize the window, it
gets named "icon".
Anybody? Here is my Epoch code to set the window name.
(defun set-window-name (win)
(let* ((buff (window-buffer win))
(name (or (and buff (buffer-name buff)) "# No-Name #") )
(scr (epoch::screen-of-window win)))
(if (and buff (buffer-file-name buff))
(progn (epoch::title (concat name " @ " (system-name)) scr)
(epoch::icon-name name scr)))))
(setq set-window-buffer-hook 'set-window-name)
Here is my GWM code dealing with the icons.
(customize simple-icon any Emacs simple-icon.background (color-make "wheat"))
(customize simple-icon any MiniBuffer simple-icon.background (color-make "wheat"))
(set-icon-window any simple-icon)
--
Douglas Keenan Rand Honeywell -- Air Transport Systems Division
Phone: +1 602 436 2814 US Snail: P.O. Box 21111 Phoenix AZ 85036
NSFnet: rand@hwcae.cfsat.honeywell.com UUCP: uunet!asuvax!apciphx!hwcae!rand
Re: GWM won't name my Epoch icons correctly
Author: Alan M. Carroll
Date: Mon, 20 May 1991 20:01
Date: Mon, 20 May 1991 20:01
17 lines
1656 bytes
1656 bytes
In article <9105190256.AA07676@hwcae.cfsat.honeywell.com>, rand@hwcae.cfsat.honeywell.com (Douglas K. Rand) writes: > Ok. So now I've got a window with ".profile.gwm @ phoenix" at the top. > "M-ESC (title)" returns the same string. "M-ESC (icon-name" returns > ".profile.gwm", just like it should. But when I iconize the window, it > gets named "icon". This is a GWM bug - GWM misses the icon name change event. If (icon-name) returns the correct icon name, then the property is set the right way, and there's nothing more Epoch can do about it. Setting it again will fix the problem, but it doesn't help to just set it twice originally (because the problem stems from too many events at once, adding more will just make it worse). -- Alan M. Carroll <-- Another casualty of applied metaphysics Epoch Development Team Urbana Il. "I hate shopping with the reality-impaired" - Susan
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads