aboutsummaryrefslogtreecommitdiff
path: root/generic/proof-splash.el
diff options
context:
space:
mode:
authorDavid Aspinall2007-12-12 00:02:59 +0000
committerDavid Aspinall2007-12-12 00:02:59 +0000
commitcbaf1c8dd16de15adde729eac232bb265786de31 (patch)
tree8e2333f2dbca67f42184b0de5178117deccdc516 /generic/proof-splash.el
parent2daaa99733dab8a003b997986fb77ee237eb6b74 (diff)
Remove low color-depth images; use GNU Emacs-specific toolbar images
Diffstat (limited to 'generic/proof-splash.el')
-rw-r--r--generic/proof-splash.el28
1 files changed, 6 insertions, 22 deletions
diff --git a/generic/proof-splash.el b/generic/proof-splash.el
index 8e0df006..de0350ed 100644
--- a/generic/proof-splash.el
+++ b/generic/proof-splash.el
@@ -44,7 +44,7 @@ Proof General."
nil
nil
" Please report problems at http://proofgeneral.inf.ed.ac.uk/trac
- Visit the Proof General wiki at http://proofgeneral.inf.ed.ac.uk/wiki"
+ Visit the Proof General wiki at http://proofgeneral.inf.ed.ac.uk/wiki"
nil
(unless (or proof-running-on-XEmacs proof-running-on-Emacs21)
"For a better Proof General experience, please use GNU Emacs 21 or XEmacs"))
@@ -82,7 +82,6 @@ If it is nil, a new line is inserted."
(and (listp img) (eq (car img) 'image))))
-;; could be in proof-utils
(defun proof-get-image (name &optional nojpeg default)
"Construct an image instantiator for an image, or string failing that.
Different formats are chosen from according to what can be displayed.
@@ -92,45 +91,30 @@ DEFAULT gives return value in case image not valid."
(let ((jpg (vector 'jpeg :file
(concat proof-images-directory name ".jpg")))
(gif (vector 'gif :file
- (concat proof-images-directory
- name
- (or (and
- (fboundp 'device-pixel-depth)
- (not (null (device-pixel-depth)))
- (> (device-pixel-depth) 8)
- ".gif")
- ;; Low colour gif for poor displays
- ".8bit.gif"))))
- (xpm (vector 'xpm :file
- (concat proof-images-directory name ".xpm")))
+ (concat proof-images-directory ".gif")))
(validfn (lambda (inst)
(and (valid-instantiator-p inst 'image)
(file-readable-p (aref inst 2)))))
img)
(cond
- ((and proof-running-on-XEmacs (pg-window-system)
+ ((and proof-running-on-XEmacs
+ (pg-window-system)
(featurep 'jpeg) (not nojpeg)
(funcall validfn jpg))
jpg)
((and proof-running-on-XEmacs (pg-window-system)
(featurep 'gif) (funcall validfn gif))
gif)
- ((and proof-running-on-XEmacs (pg-window-system)
- (featurep 'xpm) (funcall validfn xpm))
- xpm)
- ;; Support GNU Emacs 21
((and
proof-running-on-Emacs21
(pg-window-system)
- (setq img
+ (setq img
(find-image
(list
(list :type 'jpeg
:file (concat proof-images-directory name ".jpg"))
(list :type 'gif
- :file (concat proof-images-directory name ".gif"))
- (list :type 'xpm
- :file (concat proof-images-directory name ".xpm"))))))
+ :file (concat proof-images-directory name ".gif"))))))
img)
(t
(or default (concat "[ image " name " ]"))))))