This patch allows pixel sizes to be specified dynamically for widgets. A
side effect is that tabs can be specified with the full gutter width, hence
fixing tab color problems.
andy
2000-02-23 Andy Piper <andy(a)xemacs.org>
* glyphs.c (subwindow_instantiate): allow for dynamic size specs.
* glyphs-widget.c (check_valid_int_or_function): new function.
(image_instantiator_combo_box): use it.
(image_instantiator_scrollbar): ditto.
(image_instantiator_layout): ditto.
* gutter-items.el (add-tab-to-gutter): specify dimensions
dynamically.
* glyphs.c: add dynamic width and height elements.
(image_instance_equal): ditto.
* glyphs-widget.c (widget_query_geometry): calculate width and
height dynamically if required.
(initialize_widget_image_instance): initialize dynamic dimensions.
(widget_instantiate): pick-up dynamic dimensions.
* glyphs.h (struct Lisp_Image_Instance): add width and height for
dynamic determination. Add appropriate macros.
* gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
dimensions safe.
(WINDOW_GUTTER_SIZE): ditto.
(WINDOW_GUTTER_SIZE_INTERNAL): ditto.
* redisplay-msw.c (get_frame_compdc): gcc can't cope with this
inline.
(get_frame_dc): ditto.
2000-02-22 Andy Piper <andy(a)xemacs.org>
* redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
here.
--------------------------------------------------------------
Dr Andy Piper
Senior Consultant Architect, BEA Systems Ltd