changeset 94278:f897946caca1

(tree-widget-image-enable): Use display-images-p rather than an Emacs version test.
author Glenn Morris <rgm@gnu.org>
date Wed, 23 Apr 2008 02:58:55 +0000
parents 0d9b4dfd3f8b
children 3a6662f0427e
files lisp/tree-widget.el
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/tree-widget.el	Wed Apr 23 02:58:26 2008 +0000
+++ b/lisp/tree-widget.el	Wed Apr 23 02:58:55 2008 +0000
@@ -127,9 +127,9 @@
   :version "22.1"
   :group 'widgets)
 
-(defcustom tree-widget-image-enable
-  (not (or (featurep 'xemacs) (< emacs-major-version 21)))
-  "*Non-nil means that tree-widget will try to use images."
+(defcustom tree-widget-image-enable (if (fboundp 'display-images-p)
+                                        (display-images-p))
+  "Non-nil means that tree-widget will try to use images."
   :type  'boolean
   :group 'tree-widget)