Mercurial > hg > xemacs-beta
annotate lisp/gtk-glyphs.el @ 5885:c8bbb32fe124
Always return a string, #'current-message.
lisp/ChangeLog addition:
2015-04-04 Aidan Kehoe <kehoea@parhasard.net>
* gutter-items.el (append-progress-feedback):
* gutter-items.el (abort-progress-feedback):
Correct comments in both these functions, it's the progress stack
being adjusted, not the message stack.
* simple.el (message-stack):
Describe my recent change in the structure of this.
* simple.el (current-message):
Adjust the implementation of this to always return the string
displayed.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sat, 04 Apr 2015 13:49:30 +0100 |
parents | 308d34e9f07d |
children |
rev | line source |
---|---|
462 | 1 ;;; gtk-glyphs.el --- Support for glyphs in Gtk |
2 | |
3 ;; Copyright (C) 1994, 1997 Free Software Foundation, Inc. | |
4 | |
5 ;; Author: Kirill M. Katsnelson <kkm@kis.ru> | |
6 ;; Maintainer: XEmacs Development Team | |
7 ;; Keywords: extensions, internal, dumped | |
8 | |
9 ;; This file is part of XEmacs. | |
10 | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
462
diff
changeset
|
11 ;; XEmacs is free software: you can redistribute it and/or modify it |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
462
diff
changeset
|
12 ;; under the terms of the GNU General Public License as published by the |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
462
diff
changeset
|
13 ;; Free Software Foundation, either version 3 of the License, or (at your |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
462
diff
changeset
|
14 ;; option) any later version. |
462 | 15 |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
462
diff
changeset
|
16 ;; XEmacs is distributed in the hope that it will be useful, but WITHOUT |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
462
diff
changeset
|
17 ;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
462
diff
changeset
|
18 ;; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
462
diff
changeset
|
19 ;; for more details. |
462 | 20 |
21 ;; You should have received a copy of the GNU General Public License | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
462
diff
changeset
|
22 ;; along with XEmacs. If not, see <http://www.gnu.org/licenses/>. |
462 | 23 |
24 ;;; Synched up with: Not in FSF. | |
25 | |
26 ;;; Commentary: | |
27 | |
28 ;; This file contains temporary definitions for 'gtk glyphs. | |
29 ;; Since there currently is no image support, the glyps are defined | |
30 ;; TTY-style. This file has to be removed or reworked completely | |
31 ;; when we have images. | |
32 | |
33 ;; This file is dumped with XEmacs. | |
34 | |
35 ;;; Code: | |
36 | |
37 (progn | |
38 (if (featurep 'gtk) | |
39 (set-console-type-image-conversion-list | |
40 'gtk | |
41 `(,@(if (featurep 'xpm) '(("\\.xpm\\'" [xpm :file nil] 2))) | |
42 ("\\.xbm\\'" [xbm :file nil] 2) | |
43 ,@(if (featurep 'xpm) '(("\\`/\\* XPM \\*/" [xpm :data nil] 2))) | |
44 ,@(if (featurep 'xface) '(("\\`X-Face:" [xface :data nil] 2))) | |
45 ,@(if (featurep 'gif) '(("\\.gif\\'" [gif :file nil] 2) | |
46 ("\\`GIF8[79]" [gif :data nil] 2))) | |
47 ,@(if (featurep 'jpeg) '(("\\.jpe?g\\'" [jpeg :file nil] 2))) | |
48 ;; all of the JFIF-format JPEG's that I've seen begin with | |
49 ;; the following. I have no idea if this is standard. | |
50 ,@(if (featurep 'jpeg) '(("\\`\377\330\377\340\000\020JFIF" | |
51 [jpeg :data nil] 2))) | |
52 ,@(if (featurep 'png) '(("\\.png\\'" [png :file nil] 2))) | |
53 ,@(if (featurep 'png) '(("\\`\211PNG" [png :data nil] 2))) | |
54 ("" [autodetect :data nil] 2)))) | |
55 (cond ((featurep 'xpm) | |
56 (set-glyph-image frame-icon-glyph | |
57 (concat "../etc/" "xemacs-icon3.xpm") | |
58 'global 'gtk) | |
59 (set-glyph-image xemacs-logo | |
60 (concat "../etc/" | |
61 (if emacs-beta-version | |
62 "xemacs-beta.xpm" | |
63 "xemacs.xpm")) | |
64 'global 'gtk)) | |
65 (t | |
66 (set-glyph-image xemacs-logo | |
67 "XEmacs <insert spiffy graphic logo here>" | |
68 'global 'gtk))) | |
69 (set-glyph-image octal-escape-glyph "\\") | |
70 (set-glyph-image control-arrow-glyph "^") | |
71 (set-glyph-image invisible-text-glyph " ...") | |
72 ) | |
73 | |
74 ;;; gtk-glyphs.el ends here |