This patch allows for the normal use of gui_item keywords in widget
definitions i.e. [button :descriptor "ok" :active t] rather than [button
:descriptor ["ok" :active t]]. It also provides support for glyphs in
buttons (support for others would be possible but I don't know how much
meaning it has). see glyph-tests.el for details.
The patch also nukes all remaining warnings from the cygwin build.
I ought to try porting some of the wid-edit.el stuff to native widgets but
the size of the task defeats me at the moment.
andy
1998-12-28 Andy Piper <andy(a)xemacs.org>
* glyphs-msw.c (mswindows_button_instantiate): cope with buttons
that have an image provided.
* glyphs.h: add Q_image decl.
* glyphs-widget.c new functionality allowing images in
widgets.
(check_valid_glyph_or_image): new function to validate
glyphs passed in through :image.
(widget_normalize): new function. convert :image parameters into
real glyphs if not already so.
(widget_instantiate_1): mess with size parameters to be similar to
:image if provided.
(syms_of_glyphs_widget): new keyword :image.
(image_instantiator_format_create_glyphs_widget): normalize
buttons and allow :image.
1998-12-27 Andy Piper <andy(a)xemacs.org>
* frame-msw.c (mswindows_init_frame_1): warning elimination.
* glyphs-widget.c (check_valid_anything): no-op function.
(check_valid_callback): check callbacks in gui_items.
(check_valid_symbol): as it sounds.
(check_valid_string_or_vector): ditto.
(widget_validate): modified for descriptors that are vectors or
sequences of keyword/val pairs.
(widget_instantiate_1): ditto.
(image_instantiator_format_create_glyphs_widget): allow gui_item
keywords in the instantiator.
* gui.c (gui_parse_item_keywords_internal): renamed from
gui_parse_item_keywords but taking error behaviour.
(gui_parse_item_keywords): use it.
(gui_parse_item_keywords_no_errors): ditto.
(gui_item_add_keyval_pair): add Error_behavior flag and only
signal invalid keywords if required.
* gui.h: new gui signatures.
* menubar.c (menu_parse_submenu_keywords): use new
gui_item_add_keyval_pair signature.
* s/cygwin32.h: modify PTY_ITERATION to eliminate warnings.
---------------------------------------------------------------------------
" .sigs are like your face - rarely seen by you and uglier than you think"
Dr Andy Piper, Technical Architect, Parallax Solutions Ltd
mail: andyp(a)parallax.co.uk web:
www.parallax.co.uk/~andyp