| From: | Zajcev Evgeny <zevlg@xxxxxxxxx> |
|---|---|
| Subject: | Tip: seting background pixmap for xwem frame |
| Date: | Thu, 17 Feb 2005 01:35:34 +0300 |
| Organization: | Home |
| User-agent: | Gnus/5.1002 (Gnus v5.10.2) sxemacs/22.1 |
If you like to have some circulate pixmaps as a backgrounds for X
windows you might like this function, which fills frame background
with same xpm image:
(defun my-xwem-frame-set-pixmap (frame xpm-file)
"Make FRAME bi filled with pixmap from XPM-FILE."
(XSetWindowBackgroundPixmap
(xwem-dpy) (xwem-frame-xwin frame)
(X:xpm-pixmap-from-file
(xwem-dpy) (xwem-frame-xwin frame) xpm-file))
(xwem-frame-draw frame t)
nil)
And then test it like this:
(my-xwem-frame-set-pixmap
(xwem-frame-selected)
(expand-file-name "mini-xterm.xpm" xwem-icons-dir))
Thanks!
--
lg
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Tip: moving minibuffer interactively, Zajcev Evgeny |
|---|---|
| Next by Date: | Summary for xwem--main--2.1--patch-23, Zajcev Evgeny |
| Previous by Thread: | Tip: moving minibuffer interactively, Zajcev Evgeny |
| Next by Thread: | Summary for xwem--main--2.1--patch-23, Zajcev Evgeny |
| Indexes: | [Date] [Thread] [Top] [All Lists] |