diff options
| author | Richard M. Stallman | 1996-01-12 21:48:53 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-01-12 21:48:53 +0000 |
| commit | 7ef3956a260d493d1cb34bf47b0c6ddca0aa4a98 (patch) | |
| tree | 365db1ee3d3bfe3604f16cfbf673a081d40da189 | |
| parent | 1982da71ac1b0bc44e8cd9fe620caa602afd0ef7 (diff) | |
| download | emacs-7ef3956a260d493d1cb34bf47b0c6ddca0aa4a98.tar.gz emacs-7ef3956a260d493d1cb34bf47b0c6ddca0aa4a98.zip | |
(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.
| -rw-r--r-- | lwlib/lwlib.c | 17 |
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"; | |||
| 74 | #endif | 74 | #endif |
| 75 | /* Forward declarations */ | 75 | /* Forward declarations */ |
| 76 | static void | 76 | static void |
| 77 | instanciate_widget_instance (/* widget_instance* instance */); | 77 | instantiate_widget_instance (/* widget_instance* instance */); |
| 78 | 78 | ||
| 79 | lwlib_memset (address, value, length) | 79 | lwlib_memset (address, value, length) |
| 80 | char *address; | 80 | char *address; |
| @@ -161,7 +161,7 @@ malloc_widget_value () | |||
| 161 | return wv; | 161 | return wv; |
| 162 | } | 162 | } |
| 163 | 163 | ||
| 164 | /* this is analagous to free(). It frees only what was allocated | 164 | /* this is analogous to free(). It frees only what was allocated |
| 165 | by malloc_widget_value(), and no substructures. | 165 | by malloc_widget_value(), and no substructures. |
| 166 | */ | 166 | */ |
| 167 | void | 167 | void |
| @@ -310,7 +310,7 @@ allocate_widget_instance (info, parent, pop_up_p) | |||
| 310 | instance->next = info->instances; | 310 | instance->next = info->instances; |
| 311 | info->instances = instance; | 311 | info->instances = instance; |
| 312 | 312 | ||
| 313 | instanciate_widget_instance (instance); | 313 | instantiate_widget_instance (instance); |
| 314 | 314 | ||
| 315 | XtAddCallback (instance->widget, XtNdestroyCallback, | 315 | XtAddCallback (instance->widget, XtNdestroyCallback, |
| 316 | mark_widget_destroyed, (XtPointer)instance); | 316 | mark_widget_destroyed, (XtPointer)instance); |
| @@ -510,9 +510,14 @@ merge_widget_value (val1, val2, level) | |||
| 510 | 510 | ||
| 511 | if (val1->contents && !merged_contents) | 511 | if (val1->contents && !merged_contents) |
| 512 | { | 512 | { |
| 513 | EXPLAIN (val1->name, change, INVISIBLE_CHANGE, "(contents gone)", | 513 | /* This used to say INVISIBLE_CHANGE, |
| 514 | but it is visible and vitally important when | ||
| 515 | the contents of the menu bar itself are entirely deleted. | ||
| 516 | |||
| 517 | But maybe it doesn't matter. This fails to fix the bug. */ | ||
| 518 | EXPLAIN (val1->name, change, STRUCTURAL_CHANGE, "(contents gone)", | ||
| 514 | 0, 0); | 519 | 0, 0); |
| 515 | change = max (change, INVISIBLE_CHANGE); | 520 | change = max (change, STRUCTURAL_CHANGE); |
| 516 | } | 521 | } |
| 517 | else if (merged_contents && merged_contents->change != NO_CHANGE) | 522 | else if (merged_contents && merged_contents->change != NO_CHANGE) |
| 518 | { | 523 | { |
| @@ -759,7 +764,7 @@ dialog_spec_p (name) | |||
| 759 | } | 764 | } |
| 760 | 765 | ||
| 761 | static void | 766 | static void |
| 762 | instanciate_widget_instance (instance) | 767 | instantiate_widget_instance (instance) |
| 763 | widget_instance* instance; | 768 | widget_instance* instance; |
| 764 | { | 769 | { |
| 765 | widget_creation_function function = NULL; | 770 | widget_creation_function function = NULL; |