Mercurial > emacs
changeset 14163:2422ceecd9d2
(instantiate_widget_instance): Renamed from
instanciate_widget_instance (spelling correction).
All callers changed.
(merge_widget_value): Treat disappearance of entire contents
as a STRUCTURAL_CHANGE.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 12 Jan 1996 21:48:53 +0000 |
parents | 15ea2a83edae |
children | 519566ee8a29 |
files | lwlib/lwlib.c |
diffstat | 1 files changed, 11 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/lwlib/lwlib.c Fri Jan 12 21:47:32 1996 +0000 +++ b/lwlib/lwlib.c Fri Jan 12 21:48:53 1996 +0000 @@ -74,7 +74,7 @@ #endif /* Forward declarations */ static void -instanciate_widget_instance (/* widget_instance* instance */); +instantiate_widget_instance (/* widget_instance* instance */); lwlib_memset (address, value, length) char *address; @@ -161,7 +161,7 @@ return wv; } -/* this is analagous to free(). It frees only what was allocated +/* this is analogous to free(). It frees only what was allocated by malloc_widget_value(), and no substructures. */ void @@ -310,7 +310,7 @@ instance->next = info->instances; info->instances = instance; - instanciate_widget_instance (instance); + instantiate_widget_instance (instance); XtAddCallback (instance->widget, XtNdestroyCallback, mark_widget_destroyed, (XtPointer)instance); @@ -510,9 +510,14 @@ if (val1->contents && !merged_contents) { - EXPLAIN (val1->name, change, INVISIBLE_CHANGE, "(contents gone)", + /* This used to say INVISIBLE_CHANGE, + but it is visible and vitally important when + the contents of the menu bar itself are entirely deleted. + + But maybe it doesn't matter. This fails to fix the bug. */ + EXPLAIN (val1->name, change, STRUCTURAL_CHANGE, "(contents gone)", 0, 0); - change = max (change, INVISIBLE_CHANGE); + change = max (change, STRUCTURAL_CHANGE); } else if (merged_contents && merged_contents->change != NO_CHANGE) { @@ -759,7 +764,7 @@ } static void -instanciate_widget_instance (instance) +instantiate_widget_instance (instance) widget_instance* instance; { widget_creation_function function = NULL;