head	1.1;
branch	1.1.1;
access;
symbols
	EMACS_21_3:1.1.1.22
	EMACS_21_2:1.1.1.21
	EMACS_21_1:1.1.1.20
	EMACS_21_0_106:1.1.1.19
	EMACS_21_0_105:1.1.1.19
	EMACS_21_0_103:1.1.1.18
	EMACS_20_7:1.1.1.17
	EMACS_20_6:1.1.1.16
	EMACS_20_5:1.1.1.15
	EMACS_20_4:1.1.1.14
	EMACS_20_3:1.1.1.13
	EMACS_20_2:1.1.1.12
	EMACS_20_1:1.1.1.11
	EMACS_19_34:1.1.1.10
	EMACS_19_33:1.1.1.9
	EMACS_19_32:1.1.1.8
	EMACS_19_31:1.1.1.7
	EMACS_19_30:1.1.1.6
	EMACS_19_29:1.1.1.5
	EMACS_19_28:1.1.1.4
	EMACS_19_27:1.1.1.4
	EMACS_19_26:1.1.1.4
	EMACS_19_25:1.1.1.3
	EMACS_19_24:1.1.1.2
	EMACS_19_23:1.1.1.1
	FSF_DIST:1.1.1;
locks; strict;
comment	@# @;


1.1
date	2004.11.05.08.49.38;	author Ben Wing;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2004.11.05.08.49.38;	author Ben Wing;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2004.11.05.08.53.43;	author Ben Wing;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2004.11.05.08.57.10;	author Ben Wing;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2004.11.05.09.01.12;	author Ben Wing;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	2004.11.05.09.12.51;	author Ben Wing;	state Exp;
branches;
next	1.1.1.6;

1.1.1.6
date	2004.11.05.09.18.28;	author Ben Wing;	state Exp;
branches;
next	1.1.1.7;

1.1.1.7
date	2004.11.05.09.25.00;	author Ben Wing;	state Exp;
branches;
next	1.1.1.8;

1.1.1.8
date	2004.11.05.09.30.56;	author Ben Wing;	state Exp;
branches;
next	1.1.1.9;

1.1.1.9
date	2004.11.05.09.35.53;	author Ben Wing;	state Exp;
branches;
next	1.1.1.10;

1.1.1.10
date	2004.11.05.09.40.38;	author Ben Wing;	state Exp;
branches;
next	1.1.1.11;

1.1.1.11
date	2004.11.05.09.47.02;	author Ben Wing;	state Exp;
branches;
next	1.1.1.12;

1.1.1.12
date	2004.11.05.09.53.11;	author Ben Wing;	state Exp;
branches;
next	1.1.1.13;

1.1.1.13
date	2004.11.05.10.00.29;	author Ben Wing;	state Exp;
branches;
next	1.1.1.14;

1.1.1.14
date	2004.11.05.10.08.15;	author Ben Wing;	state Exp;
branches;
next	1.1.1.15;

1.1.1.15
date	2004.11.05.10.14.57;	author Ben Wing;	state Exp;
branches;
next	1.1.1.16;

1.1.1.16
date	2004.11.05.10.21.07;	author Ben Wing;	state Exp;
branches;
next	1.1.1.17;

1.1.1.17
date	2004.11.05.10.27.15;	author Ben Wing;	state Exp;
branches;
next	1.1.1.18;

1.1.1.18
date	2004.11.05.10.35.38;	author Ben Wing;	state Exp;
branches;
next	1.1.1.19;

1.1.1.19
date	2004.11.05.10.46.27;	author Ben Wing;	state Exp;
branches;
next	1.1.1.20;

1.1.1.20
date	2004.11.05.11.03.30;	author Ben Wing;	state Exp;
branches;
next	1.1.1.21;

1.1.1.21
date	2004.11.05.11.11.57;	author Ben Wing;	state Exp;
branches;
next	1.1.1.22;

1.1.1.22
date	2004.11.05.11.21.49;	author Ben Wing;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Initial revision
@
text
@Mon May 16 03:25:22 1994  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)

	* Version 19.23 released.

	* lwlib.c (lwlib_memset: New function, used instead of memset.
	All callers changed.
	* lwlib.c (lwlib_bcopy): New function.
	* lwlib-utils.c (XtApplyToWidgets): Use lwlib_bcopy.

	* lwlib.c: Delete definitions for use of alloca.
	(name_to_widget): Use xmalloc, not alloca.

Thu May 12 06:20:36 1994  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)

	* xlwmenu.c (XlwMenuDestroy): Set new var submenu_destroyed.
	(XlwMenuRedisplay): If it's set, truncate the old_depth to 1.

Mon May  9 18:35:53 1994  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)

	* xrdb-cpp.c: Don't include string.h, unistd.h, stdlib.h.
	* lwlib-Xaw.c: Don't include string.h, unistd.h, stdlib.h.
	* lwlib-utils.c (XtApplyToWidgets): Use bcopy, not memcpy.
	* lwlib-utils.c: Don't include string.h, unistd.h, stdlib.h, memory.h.
	* xlwmenu.c: Don't include string.h, unistd.h, stdlib.h.
	* lwlib.c: Don't include string.h, unistd.h, stdlib.h.
	(safe_strdup): No longer static.
	* lwlib-Xm.c: Use safe_strdup, not strdup.

	* xlwmenu.c (string_width): No longer static.

Fri May  6 13:24:17 1994  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)

	* xlwmenuP.h (struct _XlwMenu_part): Use Pixel and Cursor
	for foreground and cursor_shape fields.

	* xlwmenu.c (XlwMenuSetValues): Check for change of font.

Thu Apr 28 16:02:23 1994  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)

	* Makefile.in: Delete all SRCS variables (unused).
	(lwlib.o, xrdb-cpp.o): Mention srcdir in dep.

Fri Apr 15 18:31:25 1994  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)

	* Makefile.in (ALL_CFLAGS): Don't define THIS_IS_X11R4.

	* xrdb.c: Define HAVE_X11R5 as in xterm.h.
	Include X11/Xlib.h, X11/cursorfont.h and X11/Xutil.h.
	(_XtDisplayInitialize): Test HAVE_X11R5.

	* dispatch.c: Define HAVE_X11R5 as in xterm.h.
	Include X11/Xlib.h, X11/cursorfont.h and X11/Xutil.h.
	(_XtConvertTypeToMask): Conditionalize on HAVE_X11R5.
	(WouldDispatchEvent): Likewise.

Tue Apr 12 12:32:32 1994  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)

	* lwlib-Xaw.c (xaw_generic_callback): Declare without arg names.

Fri Apr  1 03:25:31 1994  Frederic Pierresteguy  (fp@@hal.gnu.ai.mit.edu)

	* lwlib-Xaw.c (make_dialog): Don't allow any geometry request from the 
	user.

Tue Mar 22 13:09:25 1994  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.

Sat Mar 19 02:13:56 1994  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)

	* lwlib-Xaw.c (xaw_update_one_widget): Finish replacing XtVaSetValues.
	Don't test for scrollbar widget.

Mon Mar 14 11:12:33 1994  Frederic Pierresteguy  (fp@@gnu.ai.mit.edu)

	* lwlib-int.h: Declare lw_get_widget_info.

	* lwlib.c (lw_get_widget_info): Comment out arg in function decl.

	* lwlib-Xaw.h: Comment out args in function decls.
	* lwlib-Xaw.c: Convert all function definitions to non-prototype K&R.
	(xaw_update_one_widget - case dialogWidgetClass): Call XtSetValues,
	not XtVaSetValues.

Fri Mar 11 05:35:04 1994  Frederic Pierresteguy  (F.Pierresteguy@@frcl.bull.fr)

	* xlwmenu.c (display_menu_item): Modify parameters to draw_arrow to
	right justify the arrow in the pane.

	* lwlib.c: If not defined USE_MOTIF and defined USE_LUCID then
	define USE_XAW.

	* Makefile.in (LUCID_SRCS, LUCID_OBJS): Add the target lwlib-Xaw.[oc].

	* lwlib.c, lwlib-int.h: Merged from Lucid 19.9 release.
	* lwlib.c (_AIX): Replace the AIXV3 directive.
	(USE_XAW): New macro to conditionalize the use of the athena toolkit.
	(lw_get_widget_info): New function.
	(set_one_value): Handle USE_XAW.
	(instanciate_widget_instance): Likewise.
	(destroy_one_instance): Likewise.
	(lw_pop_all_widgets): Likewise.
	(lw_pop_down_all_widgets): Likewise.
	(get_one_value): Likewise.

	* lwlib-Xaw.c, lwlib-Xaw.h: New files.

Wed Feb 23 02:50:05 1994  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)

	* xlwmenu.c (XlwMenuInitialize, XlwMenuDestroy): Undo previous changes.

	* lwlib-Xlw.c (xlw_create_menubar, xlw_create_popup_menu):
	Use XtCreate..., not XtVaCreate...
	No need to copy instance->info->val any more.
	(xlw_update_one_widget): Use XtSetValues, not XtVaSetValues.

Mon Feb 21 16:34:02 1994  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)

	* xlwmenu.c (pop_up_menu): Call XtUngrabPointer if XtGrabPointer fails.

Sat Feb 19 15:21:40 1994  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)

	* Makefile.in (xrdb-cpp.o, lwlib.o): Put ALL_CFLAGS after other flags.

	* lwlib-Xlw.c (xlw_create_menubar): Don't call free_widget_value.
	Use malloc for allocation.
	(xlw_create_popup_menu): Likewise.

Fri Feb 18 08:03:02 1994  Frederic Pierresteguy  (fp@@mole.gnu.ai.mit.edu)

	* lwlib.c (malloc_cpt): New static variable.
	(malloc_widget_value): Increment malloc_cpt when allocating a cell.
	(free_widget_value): Really free the cells when the number of
	allocated ones is bigger than 25.

	* lwlib-Xlw.c (xlw_create_menubar): Call malloc_widget_value and
	free_widget_value instead of XtMalloc and XtFree.
	(xlw_create_popup_menu): Likewise.

Thu Feb 17 18:30:52 1994  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)

	* Makefile.in (ALL_CFLAGS): Specify -Demacs.

	* xlwmenu.c (pop_up_menu) [emacs]: Catch and ignore X protocol errors
	in XtGrabPointer.

Thu Feb 17 17:09:21 1994  Frederic Pierresteguy  (fp@@mole.gnu.ai.mit.edu)

	* lwlib-Xlw.c (xlw_create_popup_menu): Pass tem to 
	XtVaCreateManagedWidget, not instance->info->val.
	(xlw_create_menubar): Likewise.

Tue Feb 15 09:04:54 1994  Frederic Pierresteguy  (fp@@mole.gnu.ai.mit.edu)

	* lwlib-Xlw.c (xlw_create_popup_menu): Copy instance->info->val
	before calling XtVaCreateManagedWidget and then free the copy.
	(xlw_create_menubar): Likewise.

Fri Feb 11 13:06:34 1994  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)

	* xlwmenu.c (XlwMenuInitialize): Copy mw->menu.contents.
	(XlwMenuDestroy): Free mw->menu.contents.

Wed Feb  9 09:02:27 1994  Frederic Pierresteguy  (fp@@mole.gnu.ai.mit.edu)

	* xlwmenu.c (display_menu_item): Call draw_shadow_rectangle to make
	visible/invisible the selection of the menubar items.

Tue Feb  8 17:46:34 1994  Roland McGrath  (roland@@churchy.gnu.ai.mit.edu)

	* lwlib.c (strcasecmp): Renamed to my_strcasecmp.
	(find_in_table): Changed only caller.

Fri Feb  4 12:00:46 1994  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 
	the pulldown menu.

Tue Feb  1 13:21:57 1994  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)

	* lwlib.c: Include ctype.h.

Mon Jan 31 00:47:29 1994  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)

	* lwlib.c (strcasecmp): New function.

Sun Jan 30 23:30:08 1994  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)

	* xlwmenu.c, lwlib.c, lwlib-Xlw.c, lwlib-utils.c:
	Convert all function definitions to non-prototype K&R.

	* lwlib-Xlw.h: Comment out args in function decls.
	* lwlib.h: Comment out args in function decls.
	* lwlib-utils.h: Comment out args in function decls.

Sat Jan 29 21:58:47 1994  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)

	* lwlib.c: Include StringDefs.h after lwlib.h.

Sat Jan 22 18:21:59 1994  Roland McGrath  (roland@@churchy.gnu.ai.mit.edu)

	* 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.

Fri Jan 21 11:51:56 1994  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)

	* xlwmenu.c (resource_widget_value): Avoid using strdup.

Tue Jan 18 18:52:43 1994  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)

	* Makefile.in: New file.

	* lwlib-Xolmb.c: Renamed from lwlib-Xol-mb.c.
	* lwlib-Xolmb.h: Renamed from lwlib-Xol-mb.h.
	* lwlib-XolmbP.h: Renamed from lwlib-Xol-mbP.h.

	* lwlib-int.h: Renamed from lwlib-internal.h.

	

@


1.1.1.1
log
@import emacs-19.23
@
text
@@


1.1.1.2
log
@import emacs-19.24
@
text
@a0 12
Mon May 23 03:32:01 1994  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)

	* Version 19.24 released.

Fri May 20 18:42:58 1994  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)

	* xlwmenu.c (xlwMenuResources): Use XtRDimension for shadow thickness.

Thu May 19 12:23:39 1994  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)

	* lwlib-Xaw.c (xaw_pop_instance): Use XtSetValues, not XtMoveWidget.

@


1.1.1.3
log
@import emacs-19.25
@
text
@a0 9
Mon May 30 04:33:36 1994  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)

	* Version 19.25 released.

Wed May 25 04:19:01 1994  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)

	* lwlib.c (max): Function deleted.  Define as macro instead,
	but only if not already defined.

@


1.1.1.4
log
@import emacs-19.26
@
text
@d1 1
a1 1
Thu Aug 25 17:21:52 1994  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>
d3 1
a3 18
	* xlwmenu.c (pop_up_menu): Clear next_release_must_exit.
	(Start): Clear next_release_must_exit when popping up the menu.

Wed Aug 24 22:19:46 1994  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>

	* xlwmenu.c (Start): Set menu_post_event or next_release_must_exit.
	(Select): Do nothing if the menu should be left posted.

Thu Jul 28 17:12:31 1994  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>

	* xlwmenu.c (make_windows_if_needed, pop_up_menu):
	Enable mouse motion events even when no button down.

Mon Jul 11 21:38:00 1994  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)

	* xlwmenu.c (pointer_grabbed): New variable.
	(pop_up_menu): Set the variable.
	(XlwMenuDestroy): Maybe call XtUngrabPointer.
d10 4
d24 2
@


1.1.1.5
log
@import emacs-19.29
@
text
@a0 176
Mon Jun 19 22:50:57 1995  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>

	* Version 19.29 released.

Sun Jun 11 15:39:02 1995  Richard Stallman  <rms@@gnu.ai.mit.edu>

	* lwlib.c (lwlib_toolkit_type): New variable.

Fri May 26 23:54:11 1995  Richard Stallman  <rms@@gnu.ai.mit.edu>

	* xlwmenu.c (Drag): Do nothing unless menu.popped_up field is set.

Mon May 22 22:53:05 1995  Karl Heuer  <kwzh@@hal.gnu.ai.mit.edu>

	* xlwmenu.c (XlwMenuInitialize): Cast XCreatePixmapFromBitmapData args.

Sat May 20 01:15:00 1995  Karl Heuer  <kwzh@@nutrimat.gnu.ai.mit.edu>

	* lwlib.c: Don't use prototype.
	* lwlib-Xm.c (activate_button, xm_update_cascadebutton): Likewise.

Fri May  5 21:54:02 1995  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>

	* lwlib.c (lw_refigure_widget) [USE_MOTIF]: Fix backward if.

Thu May  4 15:52:16 1995  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>

	* Makefile.in (ALL_CFLAGS): Add -I../src.

Wed May  3 19:35:22 1995  Morten Welinder  <terra+@@cs.cmu.edu>

	* lwlib.c [__osf__]: Include string.h and stdlib.h.
	[__osf__] (xmalloc): Declared.

Thu Apr 13 01:02:01 1995  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>

	* lwlib-Xm.c (update_one_menu_entry, make_menu_in_widget):
	Specify more useful names in XmCreatePulldownMenu calls.

	* lwlib-Xaw.c (xaw_pop_instance): Make x, y, w, h unsigned.

	* xlwmenu.c (size_menu): Make height and label_width unsigned.
	(fit_to_screen): Make screen_width and screen_height unsigned.
	(motion_event_is_in_menu): Make x, y unsigned.

Sun Apr  9 00:55:40 1995  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>

	* lwlib-utils.c: If HAVE_CONFIG_H, include config.h.

	* Makefile.in (ALL_CFLAGS): Define HAVE_CONFIG_H.
	Add -I${srcdir}/../src.
	
Sat Apr  8 14:01:45 1995  Paul Reilly  <pmr@@geech.gnu.ai.mit.edu>

	* lwlib-Xm.c: Remove function prototypes.
	(xm_pop_down_callback): Call the deactivation callback only when
	popping	down the top level submenu.

Fri Apr  7 01:44:18 1995  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>

	* Makefile.in (lwlib.o): Depend on Makefile.

	* lwlib-Xm.h: Remove function prototypes.

	* lwlib-Xm.c (remove_grabs): Use type Widget for `menu'.

Wed Feb 15 14:09:35 1995  Paul Reilly  <pmr@@geech.gnu.ai.mit.edu>

	* Makefile.in (ALL_CFLAGS): Allow include files to be found in
        `srcdir'.

Tue Feb  7 18:50:09 1995  Richard Stallman  <rms@@pogo.gnu.ai.mit.edu>

	* Makefile.in (maintainer-clean): Renamed from realclean.

Mon Nov 28 18:11:00 1994  Richard Stallman  <rms@@bethel>

	* lwlib-int.h (safe_strdup): Don't use ANSI argument prototype.

Tue Nov 15 03:22:52 1994  Paul Reilly  <pmr@@duality.gnu.ai.mit.edu>

	* lwlib.c (lw_refigure_widget): Use the macro USE_XAW rather than XAW.

Tue Nov  8 13:06:07 1994  Paul Reilly  <pmr@@duality.gnu.ai.mit.edu>

	* lwlib-Xm.c (make_menu_in_widget):  Differentiate a separator
	entry ("--") from a title.
	(xm_pop_down_callback): Filter all but the last pop down callbacks.

Mon Nov  7 07:31:19 1994  Paul Reilly  <pmr@@duality.gnu.ai.mit.edu>

	* lwlib-Xm.c (update_one_menu_entry): Use the parent of the
	cascade button as the parent of the pulldown, rather than the
	cascade button itself.  This works around a Motif SIGSEGV in the
	function `InSharedMenuHierarchy'.

Sat Oct 29 23:25:10 1994  Richard Stallman  <rms@@duality.gnu.ai.mit.edu>

	* xlwmenu.c (xlwmenu_default_font): New global variable.
	(XlwMenuInitialize): Use xlwmenu_default_font to default
	the font if necessary.  Make mw, itself, an argument.

Wed Oct 26 04:57:41 1994  Richard Stallman  <rms@@duality.gnu.ai.mit.edu>

	* xlwmenu.c (pop_up_menu): Pass a Display * to x_catch_errors, etc.

Wed Oct 26 00:57:28 1994  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>

	* xlwmenu.c (xlwmenu_default_font): New global variable.
	(XlwMenuInitialize): Use xlwmenu_default_font to default
	the font if necessary.  Make mw, itself, an argument.

	* xlwmenu.c (pop_up_menu): Pass a Display * to x_catch_errors, etc.

Sat Oct  8 00:15:45 1994  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>

	* xlwmenu.c (fit_to_screen): Don't put the menu off the left or top.

Sun Oct  2 08:07:15 1994  Paul Reilly  <pmr@@geech.gnu.ai.mit.edu>

	* xlwmenu.c (display_menu_item): Add support for displaying the
        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.

Sun Sep 25 15:57:17 1994  Paul Reilly  <pmr@@geech.gnu.ai.mit.edu>

	* 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.

	* lwlib-Xm.h: Declare xm_set_main_areas, xm_manage_resizing.

	* lwlib-Xm.c: (make_menu_in_widget): Add support for displaying a
	title in pop up menus.
	(make_main, xm_set_main_areas, xm_manage_resizing): New functions to
	create and manage a Motif Main Window widget.

	* xlwmenu.c: Add #include <X11/ObjectP.h> for X11R4.

Sun Sep 18 17:21:52 1994  Fred Pierresteguy <F.Pierresteguy@@frcl.bull.fr>

	* 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.

Fri Sep 16 17:21:52 1994  Paul Reilly <pmr@@geech.gnu.ai.mit.edu>

	* lwlib-Xm.c (make_main): New function to support toolkit
        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.
	(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
	Motif.

	* lwlib.h: Declare lw_refigure_widget(), lw_window_is_in_menubar(),
	lw_set_main_areas().

	* xlwmenu.h: Define Xt{Ns,CS}howGrip, Xt{Nr,CR}esizeToPreferred, and
	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.
	(pop_up_menu): Handle popping up submenus from a menubar, i.e. when
	the menu widget parent is not a shell widget.

@


1.1.1.6
log
@import emacs-19.30
@
text
@a0 22
Fri Nov 24 23:41:12 1995  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>

	* Version 19.30 released.

Mon Nov 13 21:45:28 1995  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>

	* xlwmenu.c (display_menu_item): Fix previous change.

Sat Nov  4 15:06:40 1995  Richard Stallman  <rms@@whiz-bang.gnu.ai.mit.edu>

	* xlwmenu.c (display_menu_item): Don't treat buttons specially.

Mon Aug 14 19:10:49 1995  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>

	* Makefile.in (RANLIB): Get this var from configure.

Wed Aug  2 03:12:39 1995  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>

	* lwlib.c (lw_popup_menu): New arg `event', passed along.
	* lwlib-Xlw.c (xlw_popup_menu): New arg `event'.
	* lwlib-Xm.c (xm_popup_menu): New arg `event'.

@


1.1.1.7
log
@import emacs-19.31
@
text
@a0 77
Sat May 25 15:30:10 1996  Karl Heuer  <kwzh@@gnu.ai.mit.edu>

	* Version 19.31 released.

Sun Mar 31 15:19:31 1996  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>

	* lwlib-Xm.c (destroy_all_children): When freeing a cascade button,
	free its submenu too.
	(make_menu_in_widget): Use a cascade button gadget, not a widget.
	Include Xm/CascadeBG.h.

Fri Mar 29 09:47:25 1996  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>

	* Makefile.in (tags): New target.

Thu Mar 28 13:38:14 1996  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>

	* Makefile.in (TAGS): Renamed from `tags' and fixed to work.

Tue Mar 26 13:45:45 1996  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>

	* Makefile.in (xlwmenu.o): New explicit target.

Sun Mar 24 06:55:06 1996  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>

	* lwlib.h (struct widget_value): New field this_one_change.
	* lwlib.c (merge_widget_value): Set the this_one_change field.
	* lwlib-Xm.c (destroy_all_children): New arg first_child_to_destroy.
	(make_menu_in_widget): New arg keep_first_children.
	(xm_update_menu): Preserve the first children even if later ones
	have a structural change.
	(update_one_menu_entry): Use this_one_change field.

Fri Mar  1 14:41:35 1996  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>

	* xlwmenu.c (motion_event_is_in_menu): Make x and y signed.

Sun Feb 25 01:59:30 1996  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>

	* lwlib.c (lw_window_is_in_menubar) [USE_MOTIF]:
	With Motif, the window WIN can be the menu bar widget itself.

Wed Feb 21 15:54:25 1996  Richard Stallman  <rms@@whiz-bang.gnu.ai.mit.edu>

	* lwlib.c (free_widget_value_tree, merge_widget_value):
	Use XtFree for the toolkit_data.

Mon Feb 19 02:36:44 1996  Karl Heuer  <kwzh@@gnu.ai.mit.edu>

	* lwlib.c (lw_internal_update_other_instances): Move static var
	outside the function, and rename it to lwlib_updating.

Thu Jan  4 19:09:22 1996  Paul Eggert  <eggert@@twinsun.com>

	* lwlib.c (instantiate_widget_instance): Renamed from
	instanciate_widget_instance (spelling correction).
	All callers changed.

Sun Dec 31 13:57:56 1995  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>

	* xlwmenu.c (xlwMenuActionsList): Add "key" and "nothing".
	(xlwMenuTranslations): Add translations for Key, KeyUp,
	and for the modifier keysyms.
	(Nothing, Key): New functions.

Sun Dec 24 11:02:18 1995  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>

	* xlwmenu.c (XlwMenuSetValues): Do redisplay if non-null contents
	get replaced by empty contents.

	* lwlib.c (merge_widget_value): Treat disappearance of entire contents
	as a STRUCTURAL_CHANGE.

Wed Dec 20 20:31:41 1995  Richard Stallman  <rms@@whiz-bang.gnu.ai.mit.edu>

	* lwlib-utils.c: Add #undef for index and rindex.

@


1.1.1.8
log
@import emacs-19.32
@
text
@a0 38
Wed Jul 31 13:52:46 1996  Richard Stallman  <rms@@psilocin.gnu.ai.mit.edu>

	* Version 19.32 released.

Wed Jul 31 12:48:46 1996  Marcus Daniels  <marcus@@sayre.sysc.pdx.edu>

	* lwlib-Xm.c (make_menubar): Turn off menu accelerator.

Wed Jul 24 07:26:26 1996  Marcus Daniels  <marcus@@sayre.sysc.pdx.edu>

	* lwlib.c (merge_widget_value) [USE_MOTIF]: Pass along the change
	flag from merged_contents.

Sat Jul 13 14:50:46 1996  Karl Heuer  <kwzh@@gnu.ai.mit.edu>

	* lwlib-Xm.c (xm_update_menu): Fix loop termination test.

Sun Jul  7 18:54:35 1996  Karl Heuer  <kwzh@@gnu.ai.mit.edu>

	* lwlib-Xm.h, lwlib-Xm.c, lwlib.h, lwlib.c: Undo previous change.

Wed Jul  3 01:09:22 1996  Marcus Daniels  <marcus@@sayre.sysc.pdx.edu>

	* lwlib-Xm.h: Declare lw_motif_menu_related_event_p.

	* lwlib-Xm.c (lw_motif_menu_related_event_p): A predicate to
	identify keyboard events intended only for menus.

	* lwlib.h: Declare lw_toolkit_related_event_p.

	* lwlib.c (lw_toolkit_related_event_p): A predicate to identify
	toolkit-specific events.

Fri Jun  7 13:14:02 1996  Marcus Daniels  <marcus@@sayre.sysc.pdx.edu>

	* lwlib-Xm.c (make_menu_in_widget): Set mapping delay
	for cascade buttons to zero.

@


1.1.1.9
log
@import emacs-19.33
@
text
@a0 17
Sun Aug 11 03:36:03 1996  Richard Stallman  <rms@@psilocin.gnu.ai.mit.edu>

	* Version 19.33 released.

	* lwlib-Xm.c (update_one_menu_entry): Fix previous change:
	When XmIsCascadeButton, don't call XmCreateCascadeButtonGadget,
	just modify the existing one.
	
Fri Aug  9 21:16:57 1996  Marcus Daniels  <marcus@@sayre.sysc.pdx.edu>

	* 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
	into a XmCascadeButtonGadget.

@


1.1.1.10
log
@import emacs-19.34
@
text
@a0 4
Wed Aug 21 03:51:42 1996  Richard Stallman  <rms@@psilocin.gnu.ai.mit.edu>

	* Version 19.34 released.

@


1.1.1.11
log
@import emacs-20.1
@
text
@d1 1
a1 1
1997-09-15  Richard Stallman  <rms@@psilocin.gnu.ai.mit.edu>
d3 1
a3 1
	* Version 20.1 released.
d5 1
a5 15
1997-07-23  Richard Stallman  <rms@@psilocin.gnu.ai.mit.edu>

	* xlwmenu.c (display_menu): If an item is disabled,
	don't display its submenu (if any).

1997-05-01  Richard Stallman  <rms@@psilocin.gnu.ai.mit.edu>

	* xlwmenu.c (pop_up_menu): Update the call to x_catch_errors.

1997-01-21  Richard Stallman  <rms@@psilocin.gnu.ai.mit.edu>

	* xlwmenu.c (fit_to_screen): If new menu would overlap the previous
	one from the side, try moving it up or down.

1996-08-11  Richard Stallman  <rms@@psilocin.gnu.ai.mit.edu>
d13 1
a13 1
1996-08-09  Marcus Daniels  <marcus@@sayre.sysc.pdx.edu>
d22 1
a22 1
1996-07-31  Richard Stallman  <rms@@psilocin.gnu.ai.mit.edu>
d26 1
a26 1
1996-07-31  Marcus Daniels  <marcus@@sayre.sysc.pdx.edu>
d30 1
a30 1
1996-07-24  Marcus Daniels  <marcus@@sayre.sysc.pdx.edu>
d35 1
a35 1
1996-07-13  Karl Heuer  <kwzh@@gnu.ai.mit.edu>
d39 1
a39 1
1996-07-07  Karl Heuer  <kwzh@@gnu.ai.mit.edu>
d43 1
a43 1
1996-07-03  Marcus Daniels  <marcus@@sayre.sysc.pdx.edu>
d55 1
a55 1
1996-06-07  Marcus Daniels  <marcus@@sayre.sysc.pdx.edu>
d60 1
a60 1
1996-05-25  Karl Heuer  <kwzh@@gnu.ai.mit.edu>
d64 1
a64 1
1996-03-31  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>
d71 1
a71 1
1996-03-29  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>
d75 1
a75 1
1996-03-28  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>
d79 1
a79 1
1996-03-26  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>
d83 1
a83 1
1996-03-24  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>
d93 1
a93 1
1996-03-01  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>
d97 1
a97 1
1996-02-25  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>
d102 1
a102 1
1996-02-21  Richard Stallman  <rms@@whiz-bang.gnu.ai.mit.edu>
d107 1
a107 1
1996-02-19  Karl Heuer  <kwzh@@gnu.ai.mit.edu>
d112 1
a112 1
1996-01-04  Paul Eggert  <eggert@@twinsun.com>
d118 1
a118 1
1995-12-31  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>
d125 1
a125 1
1995-12-24  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>
d133 1
a133 1
1995-12-20  Richard Stallman  <rms@@whiz-bang.gnu.ai.mit.edu>
d137 1
a137 1
1995-11-24  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>
d141 1
a141 1
1995-11-13  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>
d145 1
a145 1
1995-11-04  Richard Stallman  <rms@@whiz-bang.gnu.ai.mit.edu>
d149 1
a149 1
1995-08-14  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>
d153 1
a153 1
1995-08-02  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>
d159 1
a159 1
1995-06-19  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>
d163 1
a163 1
1995-06-11  Richard Stallman  <rms@@gnu.ai.mit.edu>
d167 1
a167 1
1995-05-26  Richard Stallman  <rms@@gnu.ai.mit.edu>
d171 1
a171 1
1995-05-22  Karl Heuer  <kwzh@@hal.gnu.ai.mit.edu>
d175 1
a175 1
1995-05-20  Karl Heuer  <kwzh@@nutrimat.gnu.ai.mit.edu>
d180 1
a180 1
1995-05-05  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>
d184 1
a184 1
1995-05-04  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>
d188 1
a188 1
1995-05-03  Morten Welinder  <terra+@@cs.cmu.edu>
d193 1
a193 1
1995-04-13  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>
d204 1
a204 1
1995-04-09  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>
d211 1
a211 1
1995-04-08  Paul Reilly  <pmr@@geech.gnu.ai.mit.edu>
d217 1
a217 1
1995-04-07  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>
d225 1
a225 1
1995-02-15  Paul Reilly  <pmr@@geech.gnu.ai.mit.edu>
d230 1
a230 1
1995-02-07  Richard Stallman  <rms@@pogo.gnu.ai.mit.edu>
d234 1
a234 1
1994-11-28  Richard Stallman  <rms@@bethel>
d238 1
a238 1
1994-11-15  Paul Reilly  <pmr@@duality.gnu.ai.mit.edu>
d242 1
a242 1
1994-11-08  Paul Reilly  <pmr@@duality.gnu.ai.mit.edu>
d248 1
a248 1
1994-11-07  Paul Reilly  <pmr@@duality.gnu.ai.mit.edu>
d255 1
a255 1
1994-10-29  Richard Stallman  <rms@@duality.gnu.ai.mit.edu>
d261 1
a261 1
1994-10-26  Richard Stallman  <rms@@duality.gnu.ai.mit.edu>
d265 1
a265 1
1994-10-26  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>
d273 1
a273 1
1994-10-08  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>
d277 1
a277 1
1994-10-02  Paul Reilly  <pmr@@geech.gnu.ai.mit.edu>
d285 1
a285 1
1994-09-25  Paul Reilly  <pmr@@geech.gnu.ai.mit.edu>
d302 1
a302 1
1994-09-18  Fred Pierresteguy <F.Pierresteguy@@frcl.bull.fr>
d308 1
a308 1
1994-09-16  Paul Reilly <pmr@@geech.gnu.ai.mit.edu>
d335 1
a335 1
1994-08-25  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>
d340 1
a340 1
1994-08-24  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>
d345 1
a345 1
1994-07-28  Richard Stallman  <rms@@mole.gnu.ai.mit.edu>
d350 1
a350 1
1994-07-11  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)
d356 1
a356 1
1994-05-25  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)
d361 1
a361 1
1994-05-20  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)
d365 1
a365 1
1994-05-19  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)
d369 1
a369 1
1994-05-16  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)
d379 1
a379 1
1994-05-12  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)
d384 1
a384 1
1994-05-09  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)
d397 1
a397 1
1994-05-06  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)
d404 1
a404 1
1994-04-28  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)
d409 1
a409 1
1994-04-15  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)
d422 1
a422 1
1994-04-12  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)
d426 1
a426 1
1994-04-01  Frederic Pierresteguy  (fp@@hal.gnu.ai.mit.edu)
d431 1
a431 1
1994-03-22  Frederic Pierresteguy  (fp@@mole.gnu.ai.mit.edu)
d436 1
a436 1
1994-03-19  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)
d441 1
a441 1
1994-03-14  Frederic Pierresteguy  (fp@@gnu.ai.mit.edu)
d452 1
a452 1
1994-03-11  Frederic Pierresteguy  (F.Pierresteguy@@frcl.bull.fr)
d475 1
a475 1
1994-02-23  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)
d484 1
a484 1
1994-02-21  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)
d488 1
a488 1
1994-02-19  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)
d496 1
a496 1
1994-02-18  Frederic Pierresteguy  (fp@@mole.gnu.ai.mit.edu)
d507 1
a507 1
1994-02-17  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)
d514 1
a514 1
1994-02-17  Frederic Pierresteguy  (fp@@mole.gnu.ai.mit.edu)
d520 1
a520 1
1994-02-15  Frederic Pierresteguy  (fp@@mole.gnu.ai.mit.edu)
d526 1
a526 1
1994-02-11  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)
d531 1
a531 1
1994-02-09  Frederic Pierresteguy  (fp@@mole.gnu.ai.mit.edu)
d536 1
a536 1
1994-02-08  Roland McGrath  (roland@@churchy.gnu.ai.mit.edu)
d541 1
a541 1
1994-02-04  Frederic Pierresteguy  (fp@@mole.gnu.ai.mit.edu)
d547 1
a547 1
1994-02-01  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)
d551 1
a551 1
1994-01-31  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)
d555 1
a555 1
1994-01-30  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)
d564 1
a564 1
1994-01-29  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)
d568 1
a568 1
1994-01-22  Roland McGrath  (roland@@churchy.gnu.ai.mit.edu)
d576 1
a576 1
1994-01-21  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)
d580 1
a580 1
1994-01-18  Richard Stallman  (rms@@mole.gnu.ai.mit.edu)
@


1.1.1.12
log
@import emacs-20.2
@
text
@a0 7
1997-09-19  Richard Stallman  <rms@@psilocin.gnu.ai.mit.edu>

	* Version 20.2 released.

	* xlwmenu.c (motion_event_is_in_menu): Extend the left and
	top windows by the shadow width.

@


1.1.1.13
log
@import emacs-20.3
@
text
@a0 26
1998-08-19  Richard Stallman  <rms@@psilocin.ai.mit.edu>

	* Version 20.3 released.

1998-07-30  Paul Eggert  <eggert@@twinsun.com>

	* lwlib/Makefile.in (lwlib-utils.o, lwlib.o, lwlib-Xlw.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  <schwab@@gnu.org>

	* lwlib.c: Always declare xmalloc.
	[USE_XAW]: Include <X11/Xaw/Paned.h>.
	(lwlib_memset, lwlib_bcopy): Explicitly declare return type.

1997-12-20  Richard Stallman  <rms@@delysid.gnu.org>

	* lwlib-Xm.c (update_one_menu_entry):
	Add conditional in case XmNpositionIndex is missing.

1997-12-20  Richard Stallman  <rms@@psilocin.gnu.org>

	* lwlib-Xm.c (update_one_menu_entry):
	Add conditional in case XmNpositionIndex is missing.

@


1.1.1.14
log
@import emacs-20.4
@
text
@a0 4
1999-07-12  Richard Stallman  <rms@@gnu.org>

	* Version 20.4 released.

@


1.1.1.15
log
@import emacs-20.5
@
text
@a0 4
1999-12-04  Gerd Moellmann  <gerd@@gnu.org>

	* Version 20.5 released.
	
@


1.1.1.16
log
@import emacs-20.6
@
text
@a0 4
2000-02-26  Gerd Moellmann  <gerd@@gnu.org>

	* Version 20.6 released.
	
@


1.1.1.17
log
@import emacs-20.7
@
text
@a0 4
2000-06-13  Gerd Moellmann  <gerd@@gnu.org>

	* Version 20.7 released.
	
@


1.1.1.18
log
@import emacs-21.0.103
@
text
@a0 369
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): 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 <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.

2000-06-06  Dave Love  <fx@@gnu.org>

	* 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) <x_alloc_nearest_color_for_widget>: Cast first
	arg.
	(Start) <pop_up_menu>: Cast second arg.

	* lwlib.c (P_): Use PROTOTYPES.
	(safe_strdup): Declare arg const.
	(lw_modify_all_widgets) <!info>: 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  <gerd@@gnu.org>

	* lwlib-Xm.c (make_menubar) [LESSTIF_VERSION]: Don't set
	XmNresizeHeight and XmNresizeWidth.

2000-03-08  Dave Love  <fx@@gnu.org>

	* Makefile.in (liblw.a): Don't bother testing for ranlib failing
	since configure sets it up.

2000-03-06  Gerd Moellmann  <gerd@@gnu.org>

	* lwlib-Xm.c (make_menubar): Set XmNresizeHeight and
	XmNresizeWidth resources only if LESSTIF_VERSION is defined.

2000-03-05  Gerd Moellmann  <gerd@@gnu.org>

	* lwlib-Xm.c (xm_manage_resizing): Rewritten.

	* lwlib.c (lw_modify_all_widgets): Return non-zero if widget
	tree was changed.
	(merge_widget_value): Add parameter CHANGE_P.  Set *CHANGE_P
	to 1 if a change occurs.

	* lwlib.h (lw_modify_all_widgets): Change prototype.

2000-03-04  Gerd Moellmann  <gerd@@gnu.org>

	* xlwmenu.c (make_shadow_gcs): Use the widget's colormap instead
	of the screen's default colormap.

2000-02-18  Gerd Moellmann  <gerd@@gnu.org>

	* lwlib.c (merge_widget_value): Fix incorrect assignment of
	safe_strdup'd help string.

2000-01-25  Gerd Moellmann  <gerd@@gnu.org>

	* lwlib-Xm.c (make_menu_in_widget): Don't add XmNpopdownCallback,
	add XmNunmapCallback.
	(xm_unmap_callback): New function.
	(xm_pull_down_callback): Call pre-activate callback only if
	parent is the menu bar.

2000-01-17  Gerd Moellmann  <gerd@@gnu.org>

	* lwlib-Xm.c (xm_arm_callback): New function.
	(make_menu_in_widget): Set xm_arm_callback as XmNarmCallback and
	XmNdisarmCallback for buttons (not supported for other widgets).
	(make_menubar): Set XmNresizeHeight and XmNresizeWidth to False.

	* lwlib-Xlw.c (highlight_hook): New function.
	(xlw_create_menubar, xlw_create_popup_menu): Add highlight_hook as
	callback XtNhighlightCallback.

	* 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.
	(lw_get_widget_instance): New function.

	* lwlib-int.h: Add prototype for lw_get_widget_instance.

	* lwlib.h (_widget_value): Add help string.

	* xlwmenu.c (xlwMenuResources): All XtNhighlightCallback.
	(remap_menubar): Call highlight callback.

	* xlwmenu.h (XtNhighlightCallback): New define.

	* xlwmenuP.h (_XlwMenu_part): Add `highlight' callback list.

1999-10-19  Paul Eggert  <eggert@@twinsun.com>

	Add support for large files, plus some locale improvements.

	* dispatch.c, lwlib-Xaw.c, lwlib-Xlw.c, lwlib-Xm.c, lwlib.c, xlwmenu.c,
	xrdb-cpp.c, xrdb.c:
	Include <config.h> before any system include files.

	* lwlib-Xm.c, lwlib.c:
	Do not include <stdlib.h> or <string.h>, as <config.h> does this.

1999-10-07  Gerd Moellmann  <gerd@@gnu.org>

	* 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  <rms@@gnu.org>

	* lwlib-Xaw.c (wm_delete_window): Check all the shell's children,
	not just the first, to find the dialog box.

1999-09-14  Gerd Moellmann  <gerd@@gnu.org>

	* lwlib.c (lw_separator_p): Check for new-style separators
	differently.

1999-09-10  Gerd Moellmann  <gerd@@gnu.org>

	* lwlib.c (lw_separator_p): Add `--:space' with the same
	meaning as `--:noLine'.

1999-09-06  Gerd Moellmann  <gerd@@gnu.org>

	* lwlib.c (lw_separator_p): Add alternative separator type names.

1999-09-03  Gerd Moellmann  <gerd@@gnu.org>

	* xlwmenu.c (make_shadow_gcs): Call
	x_alloc_nearest_color_for_widget.

1999-07-12  Gerd Moellmann  <gerd@@gnu.org>

	* lwlib-Xm.c: Add function prototypes.

	* lwlib-Xm.c (xm_update_label): Use val->name to look up
	a label string from resources.
	(xm_update_label): Add some comments.

1999-07-12  Gerd Moellmann  <gerd@@gnu.org>

	* xlwmenu.c (all_dashes_p): Removed.
	(size_menu_item): Call lw_separator_p.
	(display_menu_item): Ditto.
	(display_menu): Ditto.
	(draw_separator): New.
	(display_menu_item): Call it.
	(separator_height): New.
	(size_menu_item): Call it.

	* lwlib-Xm.c (all_dashes_p): Removed.
	(make_menu_in_widget): Use lw_separator_p.  Set Motif separator
	type.

	* lwlib.c (lw_separator_p): New.

	* lwlib.h (enum menu_separator): New.

1999-07-12  Gerd Moellmann  <gerd@@gnu.org>

	* lwlib-Xm.c (make_menu_in_widget): Set alignment of menu
	title after all widgets have been created.

1999-07-12  Gerd Moellmann  <gerd@@gnu.org>

	* xlwmenu.c (toggle_button_width): Renamed from
	toggle_or_radio_button_width.
	(radio_button_width): New.
	(size_menu_item): Use new functions.
	(draw_shadow_rhombus): New.
	(draw_radio): Use radio_button_width and draw_shadow_rhombus.
	(draw_toggle): Use toggle_button_width.

1999-07-12  Gerd Moellmann  <gerd@@gnu.org>

	* lwlib-Xm.c (xm_update_toggle): Add callback xm_generic_callback
	instead of xm_internal_update_other_instances.

	* lwlib-Xm.c (make_menu_in_widget): Do help button before managing
	children to get it to the right place.
	(make_menu_in_widget): Create toggle buttons.
	(update_one_menu_entry): Update toggle buttons.

	* xlwmenu.c (size_menu_item): Add parameter button_width.
	(size_menu): Compute button_width.
	(toggle_or_radio_button_width): New.
	(draw_toggle): New.
	(draw_radio): New.
	(draw_shadow_rectangle): Add parameter `down_p'.

	* xlwmenuP.h (_window_state): Add button_width.

1999-07-12  Gerd Moellmann  <gerd@@gnu.org>

	* xlwmenu.c (make_shadow_gcs) ]emacs]: Use x_alloc_nearest_color.

	* lwlib.c (merge_widget_value): Handle button_type.
	(copy_widget_value_tree): Copy button_type.

	* lwlib.h (enum button_type): New.
	(_widget_value): New member button_type.

1999-07-12  Gerd Moellmann  <gerd@@gnu.org>

	* lwlib-Xm.c (make_menu_in_widget): Test for menubar widgets
	using XmNrowColumnType.

1999-07-12  Gerd Moellmann  <gerd@@gnu.org>

	* xlwmenu.c (abort_gracefully): New.
	(display_menu): Use it instead of abort.
	(size_menu): Ditto.

1999-07-12  Gerd Moellmann  <gerd@@gnu.org>

	* xlwmenu.c (xlwMenuResources): Change previously unused
	XtNmargin to 4.
	(size_menu): Take margin into account.
	(display_menu_item): Ditto.
	(remap_menubar): Ditto.
	(draw_arrow): Draw it 3D.

After the release of 20.4, development was split into two separate
code lines.  One line contained the code for Emacs 21, and the other
one the code for the 20.x releases after 20.4.  The following change
log entries up to the entry ``20.4 released'' are for the 20.x code
line.  Change logs above this notice are those for the 21.x code line.

d4 1
a4 1

d8 1
a8 1

d12 1
a12 1

d24 1
a24 1
	(lwlib-Xaw.o, lwlib-Xm.o, lwlib-Xol.o, lwlib-Xolmb.o):
d75 1
a75 1

d79 1
a79 1

d273 1
a273 1

d491 1
a491 1
	* lwlib-Xaw.c (make_dialog): Don't allow any geometry request from the
d496 1
a496 1
	* xlwmenu.c (XlwMenuResize): Don't allow the popup menu to resize
d579 1
a579 1
	* lwlib-Xlw.c (xlw_create_popup_menu): Pass tem to
d607 1
a607 1
	always call XDrawRectangle to clear the selection after popping down
d653 1
a654 4

;; Local Variables:
;; coding: iso-2022-7bit-unix
;; End:
@


1.1.1.19
log
@import emacs-21.0.105
@
text
@d364 18
@


1.1.1.20
log
@import emacs-21.1
@
text
@a0 4
2001-10-20  Gerd Moellmann  <gerd@@gnu.org>

	* Version 21.1 released.

a1008 5

    Copyright (C) 1995, 1996, 1997, 1998, 1999, 2001
	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.
@


1.1.1.21
log
@import emacs-21.2
@
text
@a0 4
2002-03-16  Eli Zaretskii  <eliz@@is.elta.co.il>

	* Version 21.2 released.

@


1.1.1.22
log
@import emacs-21.3
@
text
@a0 113
2003-01-26  Jan Dj,Ad(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,Bm(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,Bm(Bk  <Pavel@@Janik.cz>

	* xlwmenu.c <XtNmargin, XtNverticalSpacing, XmNshadowThickness>:
	Change default values.

2002-04-28  Jan Dj,Ad(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,Bm(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,Bm(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,Ad(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,Bm(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,Bm(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.

d3 1
a3 36
	* lwlib.c (P_): Don't define if already defined.

2002-01-27  Pavel Jan,Bm(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,Bm(Bk  <Pavel@@Janik.cz>

	* lwlib-Xaw.c (xaw_create_dialog): Initialize icon_name to
	suppress compiler warnings.

2001-12-18  Pavel Jan,Bm(Bk  <Pavel@@Janik.cz>

	* lwlib.c (separator_names): Add missing braces around initializers.

2001-12-08  Pavel Jan,Bm(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).
d7 1
a7 10
	* (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.
d29 1
a29 1

d45 2
a46 1
	value of XmNsensitive.  From Rick Scott <rwscott@@alumni.uwaterloo.ca>.
d50 2
a51 1
	* xlwmenu.c (gray_bitmap_bits): Remove `unsigned' from declaration.
d148 2
a149 1
	(make_shadow_gcs) <x_alloc_nearest_color_for_widget>: Cast first arg.
d226 2
a227 2
	(allocate_widget_info, lw_register_widget, lw_create_widget):
	Add parameter HIGHLIGHT_CB.
d254 2
a255 2
	* lwlib-Xm.c (make_menu_in_widget, update_one_menu_entry):
	Use widgets instead of gadgets to be able to set colors.
d264 2
a265 1
	* lwlib.c (lw_separator_p): Check for new-style separators differently.
d278 2
a279 1
	* xlwmenu.c (make_shadow_gcs): Call x_alloc_nearest_color_for_widget.
d301 2
a302 1
	(make_menu_in_widget): Use lw_separator_p.  Set Motif separator type.
d650 1
a650 1
	`srcdir'.
d702 1
a702 1
	title in pop up menus.
d710 4
a713 4
	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.
d724 1
a724 1
1994-09-18  Fred Pierresteguy  <F.Pierresteguy@@frcl.bull.fr>
d730 1
a730 1
1994-09-16  Paul Reilly  <pmr@@geech.gnu.ai.mit.edu>
d733 1
a733 1
	independent creation of the main Emacs widget.
d739 1
a739 1
	management inside lwlib instead of in Emacs.
d752 2
a753 1
	(Select): Remove the pointer grab when popping down a menubar submenu.
d856 1
a856 1
	itself.  Therefore reset the size to its initial value.
d995 2
a996 2
	superfluous and didn't work when configured outside srcdir.
	The implicit .c.o rule works fine.
d1018 2
a1019 2
    Copyright (C) 1995, 1996, 1997, 1998, 1999, 2001, 2002
        Free Software Foundation, Inc.
@


