Its GTK-specific. The descriptor parsing code allows the following:
/* length 1: [ "name" ]
length 2: [ "name" callback ]
length 3: [ "name" callback active-p ]
or [ "name" keyword value ]
length 4: [ "name" callback active-p suffix ]
or [ "name" callback keyword value ]
length 5+: [ "name" callback [ keyword value ]+ ]
or [ "name" [ keyword value ]+ ]
*/
from gui.c.
dialog-gtk.el is being too picky.
andy
-----Original Message-----
From: xemacs-beta-admin(a)xemacs.org
[mailto:xemacs-beta-admin@xemacs.org]On Behalf Of Patrice Belleville
Sent: Monday, November 26, 2001 9:21 PM
To: Tim Wilson
Cc: xemacs-beta(a)xemacs.org
Subject: Re: Lisp error attempting to install packages for 21.5.3 with
GTK.
On November 27, you write:
> To reproduce:
>
<- snip! ->
> 8. I searched the list's archive and with Google for this error
> message, and didn't find anything. So how do other folks use
> 21.5.3 with GTK (or don't they)? I don't see how 21.5.3 is usable
> even for testing if I can't get as far as loading the packages.
>
> Tim
> timw at edml dot co dot nz
>
> Signaling: (error "Button descriptor is too small: [\"Yes\"
dialog-box-finish t)]")
This is a bug in dialog.el. I don't think it's GTK specific, although GTK
seems pickier about this than most. Procedure make-dialog-box is passed an
array of buttons which, contrarily to what the documentation says, have
two elements instead of three. The following patch fixes it
for me.
Regards,
Patrice
---
--- dialog.el~ Sun Jul 15 01:18:59 2001
+++ dialog.el Tue Sep 11 11:15:22 2001
@@ -46,10 +46,10 @@
(make-dialog-box 'question
:question prompt
:modal t
- :buttons '(["Yes" (dialog-box-finish t)]
- ["No" (dialog-box-finish nil)]
+ :buttons '(["Yes" (dialog-box-finish t) t]
+ ["No" (dialog-box-finish nil) t]
nil
- ["Cancel" (dialog-box-cancel)]))))
+ ["Cancel" (dialog-box-cancel) t]))))
;; FSF has a similar function `x-popup-dialog'.
(defun get-dialog-box-response (position contents)
--
**------------------------------------------------------------------------
** Patrice Belleville (patrice(a)cs.ubc.ca) (604) 822-9870
** Instructor and Departmental advisor, Department of Computer Science
**------------------------------------------------------------------------