+2006-10-30 Chong Yidong <cyd@stupidchicken.com>
+
+ * Makefile.in (lwlib-utils.o): Use CPPFLAGS.
+
+2006-09-15 Jay Belanger <belanger@truman.edu>
+
+ * COPYING: Replace "Library Public License" by "Lesser Public
+ License" throughout.
+
+2006-05-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
+
+ * xlwmenu.c: Include xterm.h if emacs instead of declaring functions
+ used.
+ (string_width): Declare as static.
+ (Start, pop_up_menu): Set is_hint to 0 before calling
+ handle_motion_event.
+ (pop_up_menu): Return value and parameters for x_catch_errors and
+ x_uncatch_errors changed.
+
+2005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * xlwmenu.c (find_next_selectable):
+ (find_prev_selectable): Add missing parameter
+ declarations.
+
+2005-09-24 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * xlwmenu.c: Fix the return type for x_clear_errors and
+ x_uncatch_errors.
+
+2005-07-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
+
+ * lwlib-Xm.c (make_menu_in_widget): Disable drag and drop for
+ labels in menu bar.
+
+2005-07-04 Lute Kamstra <lute@gnu.org>
+
+ Update FSF's address in GPL notices.
+
+2005-04-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
+
+ Reenable support for I18N to Lucid menus.
+
+ * xlwmenuP.h (_XlwMenu_part): Add fontSet resource.
+
+ * xlwmenu.c (string_width):
+ (MENU_FONT_HEIGHT, MENU_FONT_ASCENT): Ditto.
+ (display_menu_item, make_drawing_gcs, XlwMenuInitialize)
+ (XlwMenuSetValues): Use font if fontSet is NULL, use only
+ font for !HAVE_X_I18N.
+ (xlwMenuResources): Add fontSet resource.
+
+2005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
+
+ * xlwmenuP.h: Temporary #undef HAVE_X_I18N until FontSet for UTF-8
+ on XFree86 is investigated.
+
+ * xlwmenu.c: Ditto.
+
+2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ Add support for I18N to Lucid menus.
+
+ * xlwmenuP.h (struct _XlwMenu_part) [HAVE_X_I18N]: Change `font' to be
+ a fontset. Add a `font_extents' element.
+
+ * xlwmenu.c (xlwMenuResources) [HAVE_X_I18N]: Use a fontset for the
+ `font' resource.
+ (string_width) [HAVE_X_I18N]: Use XmbTextExtents;
+ (MENU_FONT_HEIGHT, MENU_FONT_ASCENT): New macros.
+ (arrow_width, toggle_button_width, size_menu_item, draw_arrow)
+ (draw_toggle, draw_radio, display_menu_item): Use them.
+ (display_menu_item) [HAVE_X_I18N]: Use XmbDrawString.
+ (make_drawing_gcs) [HAVE_X_I18N]: Don't mess with fonts.
+ (XlwMenuInitialize) [HAVE_X_I18N]: Initialize font_extents.
+ (XlwMenuSetValues) [HAVE_X_I18N]: Refresh font_extents if font changes.
+
+ * lwlib-Xm.c (xm_update_label, xm_update_list): Use the recommended
+ XmStringCreateLocalized function. Add missing copyright.
+
+ * lwlib-Xm.h: Add missing copyright and license notice.
+
+2005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * xlwmenuP.h:
+ * xlwmenu.h: Add missing copyright and license notice.
+
+2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
+
+ * xlwmenu.c (xlwMenuActionsList): Install MenuGadgetEscape as an
+ action procedure for compatibility with Lesstif/Motif.
+
+ * Makefile.in (mostlyclean): Don't remove *~ on clean.
+
+2004-12-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
+
+ * lwlib-Xaw.c: Put <KeyPress>Escape in dialogOverride so dialogs only
+ pops down on Escape, not any keypress.
+
+2004-11-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
+
+ * xlwmenu.c (find_first_selectable, find_next_selectable)
+ (find_prev_selectable): Rename parameter skip_no_call_data to
+ skip_titles. Recognize titles as having no call_data and no contents.
+ (Down, Up): Comment update.
+
+2004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
+
+ * lwlib.h (_widget_value): Add lname and lkey.
+
+2004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
+
+ * xlwmenuP.h (_XlwMenu_part): Add top_depth.
+
+ * xlwmenu.h: Removed declaration of pop_up_menu
+
+ * xlwmenu.c (Start): Get correct time if time in event is CurrentTime.
+ (find_first_selectable, find_next_selectable)
+ (find_prev_selectable): Add parameter skip_no_call_data to skip
+ over items with no call data (popup menu titles).
+ (Down, Up): Compare old_depth to top_depth instead of 2.
+ Pass True to find_*_selectable:s new parameter if this is a popup menu.
+ (Left, Right): Compare old_depth to top_depth instead of 2.
+ Pass 0 to find_*_selectable:s new parameter.
+ (pop_up_menu): Set top_depth to 1 for pop up menus and 2 for
+ menu bar menus, to enable keyboard traversal of popups.
+
+ * lwlib-Xm.c (dialog_key_cb): New function.
+ (make_dialog): Add event handlers to dialog_key_cb for key press
+ so we can pop down on ESC.
+
+ * lwlib-Xlw.c (xlw_popup_menu): Replace call to pop_up_menu with
+ XtCallActionProc ("start"). Use a full XEvent since "start" copies it.
+
+ * lwlib-Xaw.c (make_dialog): Add override so dialog pops down
+ on ESC.
+ (wm_delete_window): If widget isn't a shell, use the parent.
+
+2003-05-22 Dave Love <fx@gnu.org>
+
+ * xlwmenu.c: Include lisp.h, not ../src/lisp.h.
+ (make_drawing_gcs): Remove unused `xswa', `mask'.
+
+ * lwlib-Xlw.c: Include lisp.h, not ../src/lisp.h.
+ (lw_lucid_widget_p): Remove unused `mw'.
+ (xlw_update_one_widget, xlw_pop_instance) [PROTOTYPES]:
+ Provide ISO C arglists.
+
+2003-04-30 Lute Kamstra <lute@gnu.org>
+
+ * Makefile.in: Make things function properly in case both LessTif
+ and Open Motif are installed.
+
+2003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
+
+ * lwlib-Xm.c (update_one_menu_entry): Deallocate widget_list.
+ (destroy_all_children): Call it self to destroy sub menu children.
+
+2002-12-22 Richard M. Stallman <rms@gnu.org>
+
+ * xlwmenu.c (pop_new_stack_if_no_contents): Do nothing if
+ new_depth is 1.
+ (remap_menubar): Don't look in new_stack[0].
+ (Left): At level 1, do the same thing Right does.
+
+2002-11-21 Dave Love <fx@gnu.org>
+
+ * lwlib-Xaw.c [PROTOTYPES]: Provide ISO C arglists for functions
+ with Boolean args.
+
+2002-11-20 Dave Love <fx@gnu.org>
+
+ * lwlib.c: Remove obsolete USE_OLIT code.
+ [PROTOTYPES]: Provide ISO C arglists for functions with Boolean args.
+ (lwlib_memset): Declare length arg as size_t.
+ (malloc_widget_value): Cast arg of lwlib_memset.
+
+ * xlwmenu.c (separator_height): Prototype.
+
+2002-05-07 Miles Bader <miles@gnu.org>
+
+ * xlwmenu.c (make_drawing_gcs): The scaling factor passed to
+ `x_alloc_lighter_color_for_widget' is a float, not an int, and
+ it's a multiplicative factor, so the name `delta' is inaccurate.
+ Always base disabled foreground on the normal foreground.
+ Don't use the temporary variable `temp'.
+
+2002-05-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
+
+ * xlwmenu.c (xlwMenuResources): New resource.
+ (find_next_selectable): Return current item when the menu is not
+ poped up.
+ Rename `inactive_gc' to `disabled_gc'.
+ Use lighter/darker color for disabled menu items instead of using
+ stipple. Use stipple only when better color can not be
+ determined automatically.
+
+ * xlwmenu.h (XtNdisabledForeground, XtCDisabledForeground):
+ New resource names.
+
+ * xlwmenuP.h (_XlwMenu_part): Add new member `disabled_foreground'.
+ Rename `inactive_gc' to `disabled_gc'.
+
+2002-04-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
+
+ * xlwmenu.c <XtNmargin, XtNverticalSpacing, XmNshadowThickness>:
+ Change default values.
+
+2002-04-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
+
+ * xlwmenu.c: Do not grab keyboard if installation-directory is
+ non-nil (not installed Emacs). To simplify debugging.
+
+2002-04-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
+
+ * Makefile.in: Remove OpenLook file dependencies.
+ (xrdb-cpp.o): Remove target.
+ Remove unused defines.
+
+ * xrdb.c, xrdb-cpp.c, Imakefile, dispatch.c, dispatch.h:
+ Remove unused file.
+
+ * lwlib.c (instantiate_widget_instance): Remove duplicated prototype.
+
+2002-04-25 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
+
+ * lwlib-Xol.c, lwlib-Xol.h, lwlib-Xolmb.c, lwlib-Xolmb.h
+ * lwlib-XolmbP.h: Remove file.
+
+2002-04-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
+
+ * lwlib-Xm.c: Removed compiler warning.
+
+ * xlwmenu.c: Add calls to GrabKeyboard to remove strange
+ interactions with window managers that steal keypresses.
+ Call ungrab_all instead of XtUngrabPointer.
+ (pop_up_menu): Add call to XtGrabKeyboard.
+ (ungrab_all): New function.
+
+2002-04-20 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
+
+ * xlwmenu.c (find_next_selectable): New function.
+ (Down, Up, Right): Use it.
+ (find_next_selectable): Prevent endless loops when only one item
+ is enabled in the menu.
+
+2002-04-19 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
+
+ These changes allow moving in menu via keyboard.
+
+ * xlwmenu.c (xlwMenuTranslations, xlwMenuActionsList):
+ Add translations for cursor keys and RET.
+ (find_next_selectable, find_prev_selectable): New functions used
+ for finding menu-items.
+ (Down, Up, Left, Right): New functions.
+
+2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
+
+ * Makefile.in (TAGS): Don't use -t, it's the default behavior for
+ etags, so it barfs if invoked with -t.
+
+2002-03-17 Richard M. Stallman <rms@gnu.org>
+
+ * lwlib.c (P_): Definitions deleted.
+
+2002-03-16 Eli Zaretskii <eliz@is.elta.co.il>
+
+ * lwlib.c (P_): Don't define if already defined.
+
+2002-01-27 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
+
+ * lwlib-Xaw.c (xaw_update_scrollbar, xaw_scrollbar_scroll)
+ (xaw_scrollbar_jump): Put whole functions in #if 0.
+
+2002-01-09 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
+
+ * lwlib-Xaw.c (xaw_create_dialog): Initialize icon_name to
+ suppress compiler warnings.
+
+2001-12-18 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
+
+ * lwlib.c (separator_names): Add missing braces around initializers.
+
+2001-12-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
+
+ * COPYING: New file.
+
+2001-12-01 Richard M. Stallman <rms@gnu.org>
+
+ * lwlib.h (_widget_value): `help' has type Lisp_Object.
+
+ * xlwmenu.c, lwlib-Xaw.c, lwlib-Xlw.c: Include ../src/lisp.h.
+ * lwlib-Xm.c, lwlib-Xol.c, lwlib/lwlib-Xolmb.c: Include ../src/lisp.h.
+ * lwlib/lwlib-utils.c: Include ../src/lisp.h.
+
+ * lwlib.c: Include ../src/lisp.h. Don't declare xmalloc.
+ (free_widget_value_tree): Don't free `help' field.
+ (copy_widget_value_tree): Copy `help' simply, without safe_strdup.
+ (merge_widget_value): Compare and copy `help' simply.
+
+2001-11-28 Richard M. Stallman <rms@gnu.org>
+
+ * Makefile.in (TAGS): Find the source files in $(srcdir).
+
+2001-10-20 Gerd Moellmann <gerd@gnu.org>
+
+ * (Version 21.1 released.)
+
+2001-10-09 Gerd Moellmann <gerd@gnu.org>
+
+ * lwlib-Xaw.c (xaw_create_scrollbar) [!0]: Return NULL.
+ From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
+
+2001-10-05 Gerd Moellmann <gerd@gnu.org>
+
+ * Branch for 21.1.
+
+2001-04-30 Gerd Moellmann <gerd@gnu.org>
+
+ * xlwmenu.c (xlwmenu_window_p): New function.
+
+2001-03-23 Gerd Moellmann <gerd@gnu.org>
+
+ * lwlib-Xlw.c (x_print_complete_resource_name) [0]: New function.
+
+2001-03-22 Gerd Moellmann <gerd@gnu.org>
+
+ * lwlib-Xm.c (x_print_complete_resource_name) [0]: New function.
+
+2001-03-13 Gerd Moellmann <gerd@gnu.org>
+
+ * lwlib-Xm.c (make_menu_in_widget): Remove code forcing LessTif to
+ recompute centered text; it works fine without with current LessTif.
+
+ * lwlib-Xm.c (make_menu_in_widget): Add an XmNpopdownCallback
+ instead of an XmNunmapCallback.
+ (xm_unmap_callback): Remove.
+
+ * lwlib-Xm.c (make_menubar): Take out code in #if 0.
+
+ * lwlib-Xm.c (xm_popup_menu): Don't set XmNmenuPost unless
+ necessary. From Rick Scott <rwscott@alumni.uwaterloo.ca>.
+
+2001-02-28 Gerd Moellmann <gerd@gnu.org>
+
+ * lwlib-Xm.c (xm_arm_callback): Don't compare widgets with `None',
+ use NULL instead.
+
+ * lwlib-Xaw.c (xaw_update_one_widget): Use XtSetSensitive instead
+ of setting the value of XtNsensitive.
+
+ * lwlib-Xm.c (xm_update_radiobox, update_one_menu_entry)
+ (xm_update_one_widget): Use XtSetSensitive instead of setting the
+ value of XmNsensitive. From Rick Scott <rwscott@alumni.uwaterloo.ca>.
+
+2000-12-14 Dave Love <fx@gnu.org>
+
+ * xlwmenu.c (gray_bitmap_bits): Remove `unsigned' from declaration.
+
+2000-12-11 Dave Love <fx@gnu.org>
+
+ * xlwmenu.c (draw_separator) <SEPARATOR_SHADOW_ETCHED_IN_DASH>:
+ <SEPARATOR_SHADOW_ETCHED_OUT_DASH>: Fix call of draw_separator.
+
+2000-12-07 Gerd Moellmann <gerd@gnu.org>
+
+ * lwlib-Xm.c (xm_arm_callback): Fix last change.
+
+2000-11-30 Gerd Moellmann <gerd@gnu.org>
+
+ * lwlib-Xm.c (xm_arm_callback): Handle case that W is null;
+ also see comment there.
+
+2000-11-21 Gerd Moellmann <gerd@gnu.org>
+
+ * xlwmenu.c (xlwmenu_redisplay): New function.
+
+2000-09-30 Stefan Monnier <monnier@cs.yale.edu>
+
+ * lwlib.c (lw_separator_p): Init separator_p (bug with "-- some text").
+
+2000-09-28 Sam Steingold <sds@gnu.org>
+
+ * xlwmenu.c: Before including <X11/Xos.h> on SUN, define SUNOS41
+ to avoid redefining struct timeval and struct timezone.
+
+2000-09-04 Miles Bader <miles@gnu.org>
+
+ * xlwmenu.c (XlwMenuSetValues): Only frob the display if the menu
+ is actually displayed.
+ (remap_menubar): Only include the menu-margin in the initial X & Y
+ positions for horizontal menu-bars.
+ (fit_to_screen): If moving a sub-menu to the left-side, increment
+ its x-position by the shadow-thickness to make it look more
+ attached to the invoking menu-item (similarly to the way it would
+ be displayed on the right side).
+
+2000-09-03 Miles Bader <miles@gnu.org>
+
+ * xlwmenu.c (x_alloc_lighter_color_for_widget): New extern declaration.
+ (make_shadow_gcs) [emacs]: Use x_alloc_lighter_color_for_widget to
+ do shadow calculation.
+ (make_shadow_gcs): Remove code that tests whether the top shadow
+ is dimmer than the bottom shadow--it shouldn't ever happen.
+
+2000-08-30 Miles Bader <miles@gnu.org>
+
+ * xlwmenu.c (XlwMenuSetValues): If the background color has
+ changed, re-make the shadow-gcs too.
+
+2000-08-03 Gerd Moellmann <gerd@gnu.org>
+
+ * lwlib.c, lwlib-Xm.c, lwlib-Xaw.c: Use NULL at the end of the
+ variable argument lists of XtVaSetValues and XtVaGetValues
+ functions because 0 is not sufficient on systems where sizeof
+ (int) < sizeof (void *).
+
+2000-07-19 Gerd Moellmann <gerd@gnu.org>
+
+ * xlwmenu.c [emacs]: Don't include <X11/bitmaps/gray> because that
+ leads to redefinition errors when static is defined as empty in
+ config.h. Refer to the gray bitmap in xfns.c, instead.
+
+2000-07-18 Dave Love <fx@gnu.org>
+
+ * lwlib-utils.c (XtApplyToWidgets): Cast args of lwlib_bcopy.
+
+2000-06-23 Dave Love <fx@gnu.org>
+
+ * lwlib-Xlw.c (xlw_popup_menu): Cast arg of pop_up_menu.
+
+ * lwlib-utils.c: Include lwlib.h.
+
+2000-06-16 Gerd Moellmann <gerd@gnu.org>
+
+ * xlwmenuP.h (_XlwMenu_part): Add free_top_shadow_color_p and
+ free_bottom_shadow_color_p.
+
+ * xlwmenu.c (make_shadow_gcs): Set free_top_shadow_color_p
+ and free_top_shadow_color_p flags in the menu widget if
+ top and bottom shadow colors must be freed.
+ (release_shadow_gcs): Free colors only if they must be freed.
+
+2000-06-12 Gerd Moellmann <gerd@gnu.org>
+
+ * xlwmenu.c (make_shadow_gcs): Free and copy colors so that
+ color reference counts are right.
+ (release_shadow_gcs): Free colors.
+