X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/7397acc4946b0a953b5f13cd99dfff9a68fffb66..ab5796a9f97180707734a81320e3eb81937281fe:/lwlib/ChangeLog diff --git a/lwlib/ChangeLog b/lwlib/ChangeLog index 9a0a9d1e0c..d774f842e8 100644 --- a/lwlib/ChangeLog +++ b/lwlib/ChangeLog @@ -1,3 +1,344 @@ +2003-05-22 Dave Love + + * 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 + + * Makefile.in: Make things function properly in case both LessTif + and Open Motif are installed. + +2003-01-26 Jan Dj,Ad(Brv + + * 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 + + * 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 + + * lwlib-Xaw.c [PROTOTYPES]: Provide ISO C arglists for functions + with Boolean args. + +2002-11-20 Dave Love + + * 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 + + * 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,Bm(Bk + + * 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,Bm(Bk + + * xlwmenu.c : + Change default values. + +2002-04-28 Jan Dj,Ad(Brv + + * xlwmenu.c: Do not grab keyboard if installation-directory is + non-nil (not installed Emacs). To simplify debugging. + +2002-04-28 Pavel Jan,Bm(Bk + + * 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,Bm(Bk + + * lwlib-Xol.c, lwlib-Xol.h, lwlib-Xolmb.c, lwlib-Xolmb.h + * lwlib-XolmbP.h: Remove file. + +2002-04-22 Jan Dj,Ad(Brv + + * 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,Bm(Bk + + * 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,Bm(Bk + + 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 + + * 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 + + * lwlib.c (P_): Definitions deleted. + +2002-03-16 Eli Zaretskii + + * lwlib.c (P_): Don't define if already defined. + +2002-01-27 Pavel Jan,Bm(Bk + + * lwlib-Xaw.c (xaw_update_scrollbar, xaw_scrollbar_scroll) + (xaw_scrollbar_jump): Put whole functions in #if 0. + +2002-01-09 Pavel Jan,Bm(Bk + + * lwlib-Xaw.c (xaw_create_dialog): Initialize icon_name to + suppress compiler warnings. + +2001-12-18 Pavel Jan,Bm(Bk + + * lwlib.c (separator_names): Add missing braces around initializers. + +2001-12-08 Pavel Jan,Bm(Bk + + * COPYING: New file. + +2001-12-01 Richard M. Stallman + + * 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 + + * Makefile.in (TAGS): Find the source files in $(srcdir). + +2001-10-20 Gerd Moellmann + + * (Version 21.1 released.) + +2001-10-09 Gerd Moellmann + + * lwlib-Xaw.c (xaw_create_scrollbar) [!0]: Return NULL. + From Hallvard B Furuseth . + +2001-10-05 Gerd Moellmann + + * Branch for 21.1. + +2001-04-30 Gerd Moellmann + + * xlwmenu.c (xlwmenu_window_p): New function. + +2001-03-23 Gerd Moellmann + + * lwlib-Xlw.c (x_print_complete_resource_name) [0]: New function. + +2001-03-22 Gerd Moellmann + + * lwlib-Xm.c (x_print_complete_resource_name) [0]: New function. + +2001-03-13 Gerd Moellmann + + * 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): Removed. + + * 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 . + +2001-02-28 Gerd Moellmann + + * 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 . + +2000-12-14 Dave Love + + * xlwmenu.c (gray_bitmap_bits): Remove `unsigned' from declaration. + +2000-12-11 Dave Love + + * xlwmenu.c (draw_separator) : + : Fix call of draw_separator. + +2000-12-07 Gerd Moellmann + + * lwlib-Xm.c (xm_arm_callback): Fix last change. + +2000-11-30 Gerd Moellmann + + * lwlib-Xm.c (xm_arm_callback): Handle case that W is null; + also see comment there. + +2000-11-21 Gerd Moellmann + + * xlwmenu.c (xlwmenu_redisplay): New function. + +2000-09-30 Stefan Monnier + + * lwlib.c (lw_separator_p): Init separator_p (bug with "-- some text"). + +2000-09-28 Sam Steingold + + * xlwmenu.c: Before including on SUN, define SUNOS41 + to avoid redefining struct timeval and struct timezone. + +2000-09-04 Miles Bader + + * 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 + + * 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 + + * xlwmenu.c (XlwMenuSetValues): If the background color has + changed, re-make the shadow-gcs too. + +2000-08-03 Gerd Moellmann + + * 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 + + * xlwmenu.c [emacs]: Don't include 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 + + * lwlib-utils.c (XtApplyToWidgets): Cast args of lwlib_bcopy. + +2000-06-23 Dave Love + + * lwlib-Xlw.c (xlw_popup_menu): Cast arg of pop_up_menu. + + * lwlib-utils.c: Include lwlib.h. + +2000-06-16 Gerd Moellmann + + * 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 + + * xlwmenu.c (make_shadow_gcs): Free and copy colors so that + color reference counts are right. + (release_shadow_gcs): Free colors. + +2000-06-06 Dave Love + + * xlwmenu.c (x_alloc_nearest_color_for_widget, x_catch_errors) + (x_uncatch_errors, x_had_errors_p, x_clear_errors): Add prototypes + -- should be moved into separate header. + (make_shadow_gcs) : Cast first arg. + (Start) : Cast second arg. + + * lwlib.c (P_): Use PROTOTYPES. + (safe_strdup): Declare arg const. + (lw_modify_all_widgets) : Return 0. + + * lwlib-Xm.c (P_): Use PROTOTYPES. + + * xlwmenu.h, lwlib.h, lwlib-utils.h, lwlib-int.h, lwlib-Xm.h: + * lwlib-Xlw.h, lwlib-Xaw.h: Enable prototypes. + + * lwlib-Xaw.c (xaw_popup_menu): Add EVENT arg. + + * Makefile.in (lwlib.o): Depend on lwlib-Xlw.h. + (lwlib-Xlw.o): Depend on lwlib-Xlw.h. + (lwlib-Xaw.o): Depend on lwlib-Xaw.h. + (lwlib-Xm.o): Depend on lwlib-Xm.h. + +2000-03-12 Gerd Moellmann + + * lwlib-Xm.c (make_menubar) [LESSTIF_VERSION]: Don't set + XmNresizeHeight and XmNresizeWidth. + 2000-03-08 Dave Love * Makefile.in (liblw.a): Don't bother testing for ranlib failing @@ -51,8 +392,8 @@ * lwlib.c (copy_widget_value_tree): Copy help string. (free_widget_value_tree): Free help string. (merge_widget_value): Handle help string. - (allocate_widget_info, lw_register_widget, lw_create_widget): Add - parameter HIGHLIGHT_CB. + (allocate_widget_info, lw_register_widget, lw_create_widget): + Add parameter HIGHLIGHT_CB. (lw_get_widget_instance): New function. * lwlib-int.h: Add prototype for lw_get_widget_instance. @@ -67,7 +408,7 @@ * xlwmenuP.h (_XlwMenu_part): Add `highlight' callback list. 1999-10-19 Paul Eggert - + Add support for large files, plus some locale improvements. * dispatch.c, lwlib-Xaw.c, lwlib-Xlw.c, lwlib-Xm.c, lwlib.c, xlwmenu.c, @@ -76,11 +417,11 @@ * lwlib-Xm.c, lwlib.c: Do not include or , as does this. - + 1999-10-07 Gerd Moellmann - * lwlib-Xm.c (make_menu_in_widget, update_one_menu_entry): Use - widgets instead of gadgets to be able to set colors. + * lwlib-Xm.c (make_menu_in_widget, update_one_menu_entry): + Use widgets instead of gadgets to be able to set colors. 1999-09-17 Richard Stallman @@ -89,12 +430,11 @@ 1999-09-14 Gerd Moellmann - * lwlib.c (lw_separator_p): Check for new-style separators - differently. + * lwlib.c (lw_separator_p): Check for new-style separators differently. 1999-09-10 Gerd Moellmann - * lwlib.c (lw_separator_p): Add `--:space' with the same + * lwlib.c (lw_separator_p): Add `--:space' with the same meaning as `--:noLine'. 1999-09-06 Gerd Moellmann @@ -103,8 +443,7 @@ 1999-09-03 Gerd Moellmann - * xlwmenu.c (make_shadow_gcs): Call - x_alloc_nearest_color_for_widget. + * xlwmenu.c (make_shadow_gcs): Call x_alloc_nearest_color_for_widget. 1999-07-12 Gerd Moellmann @@ -126,8 +465,7 @@ (size_menu_item): Call it. * lwlib-Xm.c (all_dashes_p): Removed. - (make_menu_in_widget): Use lw_separator_p. Set Motif separator - type. + (make_menu_in_widget): Use lw_separator_p. Set Motif separator type. * lwlib.c (lw_separator_p): New. @@ -190,7 +528,7 @@ 1999-07-12 Gerd Moellmann - * xlwmenu.c (xlwMenuResources): Change previously unused + * xlwmenu.c (xlwMenuResources): Change previously unused XtNmargin to 4. (size_menu): Take margin into account. (display_menu_item): Ditto. @@ -208,7 +546,7 @@ 1998-07-30 Paul Eggert * lwlib/Makefile.in (lwlib-utils.o, lwlib.o, lwlib-Xlw.o) - (lwlib-Xaw.o, lwlib-Xm.o, lwlib-Xol.o, lwlib-Xolmb.o): + (lwlib-Xaw.o, lwlib-Xm.o, lwlib-Xol.o, lwlib-Xolmb.o): Add dependencies to corresponding .c files. for Solaris 2.x VPATH make. 1998-04-06 Andreas Schwab @@ -259,11 +597,11 @@ * lwlib-Xm.c (update_one_menu_entry): Fix previous change: When XmIsCascadeButton, don't call XmCreateCascadeButtonGadget, just modify the existing one. - + 1996-08-09 Marcus Daniels * lwlib.c (merge_widget_value): Undo previous change. - + * lwlib-Xm.c (update_one_menu_entry): When creating a pulldown in an existing but empty menu item, in order to get a new functional pulldown, the menu item must be switched from an XmPushButtonGadget @@ -457,7 +795,7 @@ * Makefile.in (ALL_CFLAGS): Define HAVE_CONFIG_H. Add -I${srcdir}/../src. - + 1995-04-08 Paul Reilly * lwlib-Xm.c: Remove function prototypes. @@ -475,7 +813,7 @@ 1995-02-15 Paul Reilly * Makefile.in (ALL_CFLAGS): Allow include files to be found in - `srcdir'. + `srcdir'. 1995-02-07 Richard Stallman @@ -527,7 +865,7 @@ 1994-10-02 Paul Reilly * xlwmenu.c (display_menu_item): Add support for displaying the - title in pop up menus. + title in pop up menus. * lwlib.c (lw_set_main_areas): Use xm_set_main_areas(). (lw_manage_resizing): Use xm_manage_resizing() for Emacs/Motif. @@ -535,10 +873,10 @@ 1994-09-25 Paul Reilly * lwlib-Xaw.c (xaw_create_main): New function to support the - toolkit independent creation of the main Emacs widget. * - lwlib-Xlw.c (xlw_create_menubar): When compiling under Emacs, set - resizing resources to disable showGrip and to enable both - resizeToPreferred and allowShellResize. + toolkit independent creation of the main Emacs widget. * + lwlib-Xlw.c (xlw_create_menubar): When compiling under Emacs, set + resizing resources to disable showGrip and to enable both + resizeToPreferred and allowShellResize. * lwlib-Xm.h: Declare xm_set_main_areas, xm_manage_resizing. @@ -549,22 +887,22 @@ * xlwmenu.c: Add #include for X11R4. -1994-09-18 Fred Pierresteguy +1994-09-18 Fred Pierresteguy * lwlib-Xm.c (make_dialog): When there is more than two pushbuttons, set XmPACK_TIGHT and XmHORIZONTAL to the rowcolumn. Also add a margin of 10 pixels. -1994-09-16 Paul Reilly +1994-09-16 Paul Reilly * lwlib-Xm.c (make_main): New function to support toolkit - independent creation of the main Emacs widget. + independent creation of the main Emacs widget. (make_destroyed_instance): Use safe_strdup() instead of strdup(). * lwlib-int.h: Declare safe_strdup. * lwlib.c (lw_refigure_widget): New function. Handle geometry - management inside lwlib instead of in Emacs. + management inside lwlib instead of in Emacs. (lw_window_is_in_menubar): New function. Determine if the pointer is in a menubar. (lw_set_main_areas): New function. Set the main window widgets for @@ -577,8 +915,7 @@ Xt{Na,CA}llowResize. * xlwmenu.c (Start): Use pop_up_menu() to post the submenus. - (Select): Remove the pointer grab when popping down a menubar - submenu. + (Select): Remove the pointer grab when popping down a menubar submenu. (pop_up_menu): Handle popping up submenus from a menubar, i.e. when the menu widget parent is not a shell widget. @@ -675,13 +1012,13 @@ 1994-04-01 Frederic Pierresteguy (fp@hal.gnu.ai.mit.edu) - * lwlib-Xaw.c (make_dialog): Don't allow any geometry request from the + * lwlib-Xaw.c (make_dialog): Don't allow any geometry request from the user. 1994-03-22 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu) - * xlwmenu.c (XlwMenuResize): Don't allow the popup menu to resize - itself. Therefore reset the size to its initial value. + * xlwmenu.c (XlwMenuResize): Don't allow the popup menu to resize + itself. Therefore reset the size to its initial value. 1994-03-19 Richard Stallman (rms@mole.gnu.ai.mit.edu) @@ -763,7 +1100,7 @@ 1994-02-17 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu) - * lwlib-Xlw.c (xlw_create_popup_menu): Pass tem to + * lwlib-Xlw.c (xlw_create_popup_menu): Pass tem to XtVaCreateManagedWidget, not instance->info->val. (xlw_create_menubar): Likewise. @@ -791,7 +1128,7 @@ 1994-02-04 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu) * xlwmenu.c (display_menu_item): When dealing with the menubar, - always call XDrawRectangle to clear the selection after popping down + always call XDrawRectangle to clear the selection after popping down the pulldown menu. 1994-02-01 Richard Stallman (rms@mole.gnu.ai.mit.edu) @@ -820,8 +1157,8 @@ * Makefile (xrdb-cpp.o, lwlib.o): Use $(srcdir) and file name instead of $*. (dispatch.o, xrdb.o, lwlib-Xm.o): Rules removed; they were - superfluous and didn't work when configured outside srcdir. The - implicit .c.o rule works fine. + superfluous and didn't work when configured outside srcdir. + The implicit .c.o rule works fine. 1994-01-21 Richard Stallman (rms@mole.gnu.ai.mit.edu) @@ -837,5 +1174,15 @@ * lwlib-int.h: Renamed from lwlib-internal.h. - + +;; Local Variables: +;; coding: iso-2022-7bit-unix +;; End: + + Copyright (C) 1995, 1996, 1997, 1998, 1999, 2001, 2002 + Free Software Foundation, Inc. + Copying and distribution of this file, with or without modification, + are permitted provided the copyright notice and this notice are preserved. + +;;; arch-tag: 0cd8ab87-d764-40d9-b86d-d00c71887a9e