summaryrefslogtreecommitdiff
path: root/lwlib/lwlib.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-01-12 21:48:53 +0000
committerRichard M. Stallman <rms@gnu.org>1996-01-12 21:48:53 +0000
commit91175831122795335a5efa6b17ae837682ee704a (patch)
treed2683344aeafc2658a2ecfecca2a8497d50bd7da /lwlib/lwlib.c
parentc7e3338fc087a16ac1d863750b544683b54b0b01 (diff)
downloademacs-91175831122795335a5efa6b17ae837682ee704a.tar.gz
(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.
Diffstat (limited to 'lwlib/lwlib.c')
-rw-r--r--lwlib/lwlib.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/lwlib/lwlib.c b/lwlib/lwlib.c
index 5dd4f1d8133..530752772ec 100644
--- a/lwlib/lwlib.c
+++ b/lwlib/lwlib.c
@@ -74,7 +74,7 @@ char *lwlib_toolkit_type = "lucid";
#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 @@ malloc_widget_value ()
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 @@ allocate_widget_instance (info, parent, pop_up_p)
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 @@ merge_widget_value (val1, val2, level)
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 @@ dialog_spec_p (name)
}
static void
-instanciate_widget_instance (instance)
+instantiate_widget_instance (instance)
widget_instance* instance;
{
widget_creation_function function = NULL;