(xmenu_show):
[bpt/emacs.git] / lwlib / ChangeLog
CommitLineData
a3d35a39
MB
12000-09-03 Miles Bader <miles@gnu.org>
2
3 * xlwmenu.c (x_alloc_lighter_color_for_widget): New extern declaration.
4 (make_shadow_gcs) [emacs]: Use x_alloc_lighter_color_for_widget to
5 do shadow calculation.
6 (make_shadow_gcs): Remove code that tests whether the top shadow
7 is dimmer than the bottom shadow--it shouldn't ever happen.
8
caccd8f2
MB
92000-08-30 Miles Bader <miles@gnu.org>
10
11 * xlwmenu.c (XlwMenuSetValues): If the background color has
12 changed, re-make the shadow-gcs too.
13
f4988be7
GM
142000-08-03 Gerd Moellmann <gerd@gnu.org>
15
16 * lwlib.c, lwlib-Xm.c, lwlib-Xaw.c: Use NULL at the end of the
17 variable argument lists of XtVaSetValues and XtVaGetValues
18 functions because 0 is not sufficient on systems where sizeof
19 (int) < sizeof (void *).
20
47db06aa
GM
212000-07-19 Gerd Moellmann <gerd@gnu.org>
22
23 * xlwmenu.c [emacs]: Don't include <X11/bitmaps/gray> because that
24 leads to redefinition errors when static is defined as empty in
25 config.h. Refer to the gray bitmap in xfns.c, instead.
26
cdefcd82
DL
272000-07-18 Dave Love <fx@gnu.org>
28
29 * lwlib-utils.c (XtApplyToWidgets): Cast args of lwlib_bcopy.
30
af5e64bc
DL
312000-06-23 Dave Love <fx@gnu.org>
32
33 * lwlib-Xlw.c (xlw_popup_menu): Cast arg of pop_up_menu.
34
35 * lwlib-utils.c: Include lwlib.h.
36
0a2ea235
GM
372000-06-16 Gerd Moellmann <gerd@gnu.org>
38
39 * xlwmenuP.h (_XlwMenu_part): Add free_top_shadow_color_p and
40 free_bottom_shadow_color_p.
41
42 * xlwmenu.c (make_shadow_gcs): Set free_top_shadow_color_p
43 and free_top_shadow_color_p flags in the menu widget if
44 top and bottom shadow colors must be freed.
45 (release_shadow_gcs): Free colors only if they must be freed.
46
ed1056b3
GM
472000-06-12 Gerd Moellmann <gerd@gnu.org>
48
49 * xlwmenu.c (make_shadow_gcs): Free and copy colors so that
50 color reference counts are right.
51 (release_shadow_gcs): Free colors.
52
bb2337f5
DL
532000-06-06 Dave Love <fx@gnu.org>
54
55 * xlwmenu.c (x_alloc_nearest_color_for_widget, x_catch_errors)
56 (x_uncatch_errors, x_had_errors_p, x_clear_errors): Add prototypes
57 -- should be moved into separate header.
58 (make_shadow_gcs) <x_alloc_nearest_color_for_widget>: Cast first
59 arg.
60 (Start) <pop_up_menu>: Cast second arg.
61
62 * lwlib.c (P_): Use PROTOTYPES.
63 (safe_strdup): Declare arg const.
64 (lw_modify_all_widgets) <!info>: Return 0.
65
66 * lwlib-Xm.c (P_): Use PROTOTYPES.
67
68 * xlwmenu.h, lwlib.h, lwlib-utils.h, lwlib-int.h, lwlib-Xm.h:
69 * lwlib-Xlw.h, lwlib-Xaw.h: Enable prototypes.
70
71 * lwlib-Xaw.c (xaw_popup_menu): Add EVENT arg.
72
73 * Makefile.in (lwlib.o): Depend on lwlib-Xlw.h.
74 (lwlib-Xlw.o): Depend on lwlib-Xlw.h.
75 (lwlib-Xaw.o): Depend on lwlib-Xaw.h.
76 (lwlib-Xm.o): Depend on lwlib-Xm.h.
77
9b2f3c38
GM
782000-03-12 Gerd Moellmann <gerd@gnu.org>
79
80 * lwlib-Xm.c (make_menubar) [LESSTIF_VERSION]: Don't set
81 XmNresizeHeight and XmNresizeWidth.
82
7397acc4
DL
832000-03-08 Dave Love <fx@gnu.org>
84
85 * Makefile.in (liblw.a): Don't bother testing for ranlib failing
86 since configure sets it up.
87
1d4d17e2
GM
882000-03-06 Gerd Moellmann <gerd@gnu.org>
89
90 * lwlib-Xm.c (make_menubar): Set XmNresizeHeight and
91 XmNresizeWidth resources only if LESSTIF_VERSION is defined.
92
566f7ec8
GM
932000-03-05 Gerd Moellmann <gerd@gnu.org>
94
95 * lwlib-Xm.c (xm_manage_resizing): Rewritten.
96
97 * lwlib.c (lw_modify_all_widgets): Return non-zero if widget
98 tree was changed.
99 (merge_widget_value): Add parameter CHANGE_P. Set *CHANGE_P
100 to 1 if a change occurs.
101
102 * lwlib.h (lw_modify_all_widgets): Change prototype.
103
64d739c4
GM
1042000-03-04 Gerd Moellmann <gerd@gnu.org>
105
106 * xlwmenu.c (make_shadow_gcs): Use the widget's colormap instead
107 of the screen's default colormap.
108
b6a22bf8
GM
1092000-02-18 Gerd Moellmann <gerd@gnu.org>
110
111 * lwlib.c (merge_widget_value): Fix incorrect assignment of
112 safe_strdup'd help string.
113
e12489f9
GM
1142000-01-25 Gerd Moellmann <gerd@gnu.org>
115
116 * lwlib-Xm.c (make_menu_in_widget): Don't add XmNpopdownCallback,
117 add XmNunmapCallback.
118 (xm_unmap_callback): New function.
119 (xm_pull_down_callback): Call pre-activate callback only if
120 parent is the menu bar.
121
52b8dbf9
GM
1222000-01-17 Gerd Moellmann <gerd@gnu.org>
123
124 * lwlib-Xm.c (xm_arm_callback): New function.
125 (make_menu_in_widget): Set xm_arm_callback as XmNarmCallback and
126 XmNdisarmCallback for buttons (not supported for other widgets).
d36100c9 127 (make_menubar): Set XmNresizeHeight and XmNresizeWidth to False.
52b8dbf9
GM
128
129 * lwlib-Xlw.c (highlight_hook): New function.
130 (xlw_create_menubar, xlw_create_popup_menu): Add highlight_hook as
131 callback XtNhighlightCallback.
132
133 * lwlib.c (copy_widget_value_tree): Copy help string.
134 (free_widget_value_tree): Free help string.
135 (merge_widget_value): Handle help string.
136 (allocate_widget_info, lw_register_widget, lw_create_widget): Add
137 parameter HIGHLIGHT_CB.
138 (lw_get_widget_instance): New function.
139
140 * lwlib-int.h: Add prototype for lw_get_widget_instance.
141
142 * lwlib.h (_widget_value): Add help string.
143
144 * xlwmenu.c (xlwMenuResources): All XtNhighlightCallback.
145 (remap_menubar): Call highlight callback.
146
147 * xlwmenu.h (XtNhighlightCallback): New define.
148
149 * xlwmenuP.h (_XlwMenu_part): Add `highlight' callback list.
150
0f0912e6
PE
1511999-10-19 Paul Eggert <eggert@twinsun.com>
152
153 Add support for large files, plus some locale improvements.
154
155 * dispatch.c, lwlib-Xaw.c, lwlib-Xlw.c, lwlib-Xm.c, lwlib.c, xlwmenu.c,
156 xrdb-cpp.c, xrdb.c:
157 Include <config.h> before any system include files.
158
159 * lwlib-Xm.c, lwlib.c:
160 Do not include <stdlib.h> or <string.h>, as <config.h> does this.
161
f5737ad2
GM
1621999-10-07 Gerd Moellmann <gerd@gnu.org>
163
164 * lwlib-Xm.c (make_menu_in_widget, update_one_menu_entry): Use
165 widgets instead of gadgets to be able to set colors.
166
387581d8
DL
1671999-09-17 Richard Stallman <rms@gnu.org>
168
169 * lwlib-Xaw.c (wm_delete_window): Check all the shell's children,
170 not just the first, to find the dialog box.
171
1721999-09-14 Gerd Moellmann <gerd@gnu.org>
173
174 * lwlib.c (lw_separator_p): Check for new-style separators
175 differently.
176
1771999-09-10 Gerd Moellmann <gerd@gnu.org>
178
179 * lwlib.c (lw_separator_p): Add `--:space' with the same
180 meaning as `--:noLine'.
181
1821999-09-06 Gerd Moellmann <gerd@gnu.org>
183
184 * lwlib.c (lw_separator_p): Add alternative separator type names.
185
1861999-09-03 Gerd Moellmann <gerd@gnu.org>
187
188 * xlwmenu.c (make_shadow_gcs): Call
189 x_alloc_nearest_color_for_widget.
190
32660797
GM
1911999-07-12 Gerd Moellmann <gerd@gnu.org>
192
193 * lwlib-Xm.c: Add function prototypes.
194
195 * lwlib-Xm.c (xm_update_label): Use val->name to look up
196 a label string from resources.
197 (xm_update_label): Add some comments.
198
1991999-07-12 Gerd Moellmann <gerd@gnu.org>
200
201 * xlwmenu.c (all_dashes_p): Removed.
202 (size_menu_item): Call lw_separator_p.
203 (display_menu_item): Ditto.
204 (display_menu): Ditto.
205 (draw_separator): New.
206 (display_menu_item): Call it.
207 (separator_height): New.
208 (size_menu_item): Call it.
209
210 * lwlib-Xm.c (all_dashes_p): Removed.
211 (make_menu_in_widget): Use lw_separator_p. Set Motif separator
212 type.
213
214 * lwlib.c (lw_separator_p): New.
215
216 * lwlib.h (enum menu_separator): New.
217
2181999-07-12 Gerd Moellmann <gerd@gnu.org>
219
220 * lwlib-Xm.c (make_menu_in_widget): Set alignment of menu
221 title after all widgets have been created.
222
2231999-07-12 Gerd Moellmann <gerd@gnu.org>
224
225 * xlwmenu.c (toggle_button_width): Renamed from
226 toggle_or_radio_button_width.
227 (radio_button_width): New.
228 (size_menu_item): Use new functions.
229 (draw_shadow_rhombus): New.
230 (draw_radio): Use radio_button_width and draw_shadow_rhombus.
231 (draw_toggle): Use toggle_button_width.
232
2331999-07-12 Gerd Moellmann <gerd@gnu.org>
234
235 * lwlib-Xm.c (xm_update_toggle): Add callback xm_generic_callback
236 instead of xm_internal_update_other_instances.
237
238 * lwlib-Xm.c (make_menu_in_widget): Do help button before managing
239 children to get it to the right place.
240 (make_menu_in_widget): Create toggle buttons.
241 (update_one_menu_entry): Update toggle buttons.
242
243 * xlwmenu.c (size_menu_item): Add parameter button_width.
244 (size_menu): Compute button_width.
245 (toggle_or_radio_button_width): New.
246 (draw_toggle): New.
247 (draw_radio): New.
248 (draw_shadow_rectangle): Add parameter `down_p'.
249
250 * xlwmenuP.h (_window_state): Add button_width.
251
2521999-07-12 Gerd Moellmann <gerd@gnu.org>
253
254 * xlwmenu.c (make_shadow_gcs) ]emacs]: Use x_alloc_nearest_color.
255
256 * lwlib.c (merge_widget_value): Handle button_type.
257 (copy_widget_value_tree): Copy button_type.
258
259 * lwlib.h (enum button_type): New.
260 (_widget_value): New member button_type.
261
2621999-07-12 Gerd Moellmann <gerd@gnu.org>
263
264 * lwlib-Xm.c (make_menu_in_widget): Test for menubar widgets
265 using XmNrowColumnType.
266
2671999-07-12 Gerd Moellmann <gerd@gnu.org>
268
269 * xlwmenu.c (abort_gracefully): New.
270 (display_menu): Use it instead of abort.
271 (size_menu): Ditto.
272
2731999-07-12 Gerd Moellmann <gerd@gnu.org>
274
275 * xlwmenu.c (xlwMenuResources): Change previously unused
276 XtNmargin to 4.
277 (size_menu): Take margin into account.
278 (display_menu_item): Ditto.
279 (remap_menubar): Ditto.
280 (draw_arrow): Draw it 3D.
281
a08cb76c
DL
2821999-07-12 Richard Stallman <rms@gnu.org>
283
284 * Version 20.4 released.
285
2861998-08-19 Richard Stallman <rms@psilocin.ai.mit.edu>
287
288 * Version 20.3 released.
289
2901998-07-30 Paul Eggert <eggert@twinsun.com>
291
292 * lwlib/Makefile.in (lwlib-utils.o, lwlib.o, lwlib-Xlw.o)
293 (lwlib-Xaw.o, lwlib-Xm.o, lwlib-Xol.o, lwlib-Xolmb.o):
294 Add dependencies to corresponding .c files. for Solaris 2.x VPATH make.
295
2961998-04-06 Andreas Schwab <schwab@gnu.org>
297
298 * lwlib.c: Always declare xmalloc.
299 [USE_XAW]: Include <X11/Xaw/Paned.h>.
300 (lwlib_memset, lwlib_bcopy): Explicitly declare return type.
301
3021997-12-20 Richard Stallman <rms@delysid.gnu.org>
303
304 * lwlib-Xm.c (update_one_menu_entry):
305 Add conditional in case XmNpositionIndex is missing.
306
3071997-12-20 Richard Stallman <rms@psilocin.gnu.org>
308
309 * lwlib-Xm.c (update_one_menu_entry):
310 Add conditional in case XmNpositionIndex is missing.
311
3121997-09-19 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
313
314 * Version 20.2 released.
315
316 * xlwmenu.c (motion_event_is_in_menu): Extend the left and
317 top windows by the shadow width.
318
3191997-09-15 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
320
321 * Version 20.1 released.
322
3231997-07-23 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
324
325 * xlwmenu.c (display_menu): If an item is disabled,
326 don't display its submenu (if any).
327
3281997-05-01 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
329
330 * xlwmenu.c (pop_up_menu): Update the call to x_catch_errors.
331
3321997-01-21 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
333
334 * xlwmenu.c (fit_to_screen): If new menu would overlap the previous
335 one from the side, try moving it up or down.
336
3371996-08-11 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
338
339 * Version 19.33 released.
340
341 * lwlib-Xm.c (update_one_menu_entry): Fix previous change:
342 When XmIsCascadeButton, don't call XmCreateCascadeButtonGadget,
343 just modify the existing one.
344
3451996-08-09 Marcus Daniels <marcus@sayre.sysc.pdx.edu>
346
347 * lwlib.c (merge_widget_value): Undo previous change.
348
349 * lwlib-Xm.c (update_one_menu_entry): When creating a pulldown
350 in an existing but empty menu item, in order to get a new functional
351 pulldown, the menu item must be switched from an XmPushButtonGadget
352 into a XmCascadeButtonGadget.
353
3541996-07-31 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
355
356 * Version 19.32 released.
357
3581996-07-31 Marcus Daniels <marcus@sayre.sysc.pdx.edu>
359
360 * lwlib-Xm.c (make_menubar): Turn off menu accelerator.
361
3621996-07-24 Marcus Daniels <marcus@sayre.sysc.pdx.edu>
363
364 * lwlib.c (merge_widget_value) [USE_MOTIF]: Pass along the change
365 flag from merged_contents.
366
3671996-07-13 Karl Heuer <kwzh@gnu.ai.mit.edu>
368
369 * lwlib-Xm.c (xm_update_menu): Fix loop termination test.
370
3711996-07-07 Karl Heuer <kwzh@gnu.ai.mit.edu>
372
373 * lwlib-Xm.h, lwlib-Xm.c, lwlib.h, lwlib.c: Undo previous change.
374
3751996-07-03 Marcus Daniels <marcus@sayre.sysc.pdx.edu>
376
377 * lwlib-Xm.h: Declare lw_motif_menu_related_event_p.
378
379 * lwlib-Xm.c (lw_motif_menu_related_event_p): A predicate to
380 identify keyboard events intended only for menus.
381
382 * lwlib.h: Declare lw_toolkit_related_event_p.
383
384 * lwlib.c (lw_toolkit_related_event_p): A predicate to identify
385 toolkit-specific events.
386
3871996-06-07 Marcus Daniels <marcus@sayre.sysc.pdx.edu>
388
389 * lwlib-Xm.c (make_menu_in_widget): Set mapping delay
390 for cascade buttons to zero.
391
3921996-05-25 Karl Heuer <kwzh@gnu.ai.mit.edu>
393
394 * Version 19.31 released.
395
3961996-03-31 Richard Stallman <rms@mole.gnu.ai.mit.edu>
397
398 * lwlib-Xm.c (destroy_all_children): When freeing a cascade button,
399 free its submenu too.
400 (make_menu_in_widget): Use a cascade button gadget, not a widget.
401 Include Xm/CascadeBG.h.
402
4031996-03-29 Richard Stallman <rms@mole.gnu.ai.mit.edu>
404
405 * Makefile.in (tags): New target.
406
4071996-03-28 Richard Stallman <rms@mole.gnu.ai.mit.edu>
408
409 * Makefile.in (TAGS): Renamed from `tags' and fixed to work.
410
4111996-03-26 Richard Stallman <rms@mole.gnu.ai.mit.edu>
412
413 * Makefile.in (xlwmenu.o): New explicit target.
414
4151996-03-24 Richard Stallman <rms@mole.gnu.ai.mit.edu>
416
417 * lwlib.h (struct widget_value): New field this_one_change.
418 * lwlib.c (merge_widget_value): Set the this_one_change field.
419 * lwlib-Xm.c (destroy_all_children): New arg first_child_to_destroy.
420 (make_menu_in_widget): New arg keep_first_children.
421 (xm_update_menu): Preserve the first children even if later ones
422 have a structural change.
423 (update_one_menu_entry): Use this_one_change field.
424
4251996-03-01 Richard Stallman <rms@mole.gnu.ai.mit.edu>
426
427 * xlwmenu.c (motion_event_is_in_menu): Make x and y signed.
428
4291996-02-25 Richard Stallman <rms@mole.gnu.ai.mit.edu>
430
431 * lwlib.c (lw_window_is_in_menubar) [USE_MOTIF]:
432 With Motif, the window WIN can be the menu bar widget itself.
433
4341996-02-21 Richard Stallman <rms@whiz-bang.gnu.ai.mit.edu>
435
436 * lwlib.c (free_widget_value_tree, merge_widget_value):
437 Use XtFree for the toolkit_data.
438
4391996-02-19 Karl Heuer <kwzh@gnu.ai.mit.edu>
440
441 * lwlib.c (lw_internal_update_other_instances): Move static var
442 outside the function, and rename it to lwlib_updating.
443
4441996-01-04 Paul Eggert <eggert@twinsun.com>
445
446 * lwlib.c (instantiate_widget_instance): Renamed from
447 instanciate_widget_instance (spelling correction).
448 All callers changed.
449
4501995-12-31 Richard Stallman <rms@mole.gnu.ai.mit.edu>
451
452 * xlwmenu.c (xlwMenuActionsList): Add "key" and "nothing".
453 (xlwMenuTranslations): Add translations for Key, KeyUp,
454 and for the modifier keysyms.
455 (Nothing, Key): New functions.
456
4571995-12-24 Richard Stallman <rms@mole.gnu.ai.mit.edu>
458
459 * xlwmenu.c (XlwMenuSetValues): Do redisplay if non-null contents
460 get replaced by empty contents.
461
462 * lwlib.c (merge_widget_value): Treat disappearance of entire contents
463 as a STRUCTURAL_CHANGE.
464
4651995-12-20 Richard Stallman <rms@whiz-bang.gnu.ai.mit.edu>
466
467 * lwlib-utils.c: Add #undef for index and rindex.
468
4691995-11-24 Richard Stallman <rms@mole.gnu.ai.mit.edu>
470
471 * Version 19.30 released.
472
4731995-11-13 Richard Stallman <rms@mole.gnu.ai.mit.edu>
474
475 * xlwmenu.c (display_menu_item): Fix previous change.
476
4771995-11-04 Richard Stallman <rms@whiz-bang.gnu.ai.mit.edu>
478
479 * xlwmenu.c (display_menu_item): Don't treat buttons specially.
480
4811995-08-14 Richard Stallman <rms@mole.gnu.ai.mit.edu>
482
483 * Makefile.in (RANLIB): Get this var from configure.
484
4851995-08-02 Richard Stallman <rms@mole.gnu.ai.mit.edu>
486
487 * lwlib.c (lw_popup_menu): New arg `event', passed along.
488 * lwlib-Xlw.c (xlw_popup_menu): New arg `event'.
489 * lwlib-Xm.c (xm_popup_menu): New arg `event'.
490
4911995-06-19 Richard Stallman <rms@mole.gnu.ai.mit.edu>
492
493 * Version 19.29 released.
494
4951995-06-11 Richard Stallman <rms@gnu.ai.mit.edu>
496
497 * lwlib.c (lwlib_toolkit_type): New variable.
498
4991995-05-26 Richard Stallman <rms@gnu.ai.mit.edu>
500
501 * xlwmenu.c (Drag): Do nothing unless menu.popped_up field is set.
502
5031995-05-22 Karl Heuer <kwzh@hal.gnu.ai.mit.edu>
504
505 * xlwmenu.c (XlwMenuInitialize): Cast XCreatePixmapFromBitmapData args.
506
5071995-05-20 Karl Heuer <kwzh@nutrimat.gnu.ai.mit.edu>
508
509 * lwlib.c: Don't use prototype.
510 * lwlib-Xm.c (activate_button, xm_update_cascadebutton): Likewise.
511
5121995-05-05 Richard Stallman <rms@mole.gnu.ai.mit.edu>
513
514 * lwlib.c (lw_refigure_widget) [USE_MOTIF]: Fix backward if.
515
5161995-05-04 Richard Stallman <rms@mole.gnu.ai.mit.edu>
517
518 * Makefile.in (ALL_CFLAGS): Add -I../src.
519
5201995-05-03 Morten Welinder <terra+@cs.cmu.edu>
521
522 * lwlib.c [__osf__]: Include string.h and stdlib.h.
523 [__osf__] (xmalloc): Declared.
524
5251995-04-13 Richard Stallman <rms@mole.gnu.ai.mit.edu>
526
527 * lwlib-Xm.c (update_one_menu_entry, make_menu_in_widget):
528 Specify more useful names in XmCreatePulldownMenu calls.
529
530 * lwlib-Xaw.c (xaw_pop_instance): Make x, y, w, h unsigned.
531
532 * xlwmenu.c (size_menu): Make height and label_width unsigned.
533 (fit_to_screen): Make screen_width and screen_height unsigned.
534 (motion_event_is_in_menu): Make x, y unsigned.
535
5361995-04-09 Richard Stallman <rms@mole.gnu.ai.mit.edu>
537
538 * lwlib-utils.c: If HAVE_CONFIG_H, include config.h.
539
540 * Makefile.in (ALL_CFLAGS): Define HAVE_CONFIG_H.
541 Add -I${srcdir}/../src.
542
5431995-04-08 Paul Reilly <pmr@geech.gnu.ai.mit.edu>
544
545 * lwlib-Xm.c: Remove function prototypes.
546 (xm_pop_down_callback): Call the deactivation callback only when
547 popping down the top level submenu.
548
5491995-04-07 Richard Stallman <rms@mole.gnu.ai.mit.edu>
550
551 * Makefile.in (lwlib.o): Depend on Makefile.
552
553 * lwlib-Xm.h: Remove function prototypes.
554
555 * lwlib-Xm.c (remove_grabs): Use type Widget for `menu'.
556
5571995-02-15 Paul Reilly <pmr@geech.gnu.ai.mit.edu>
558
559 * Makefile.in (ALL_CFLAGS): Allow include files to be found in
560 `srcdir'.
561
5621995-02-07 Richard Stallman <rms@pogo.gnu.ai.mit.edu>
563
564 * Makefile.in (maintainer-clean): Renamed from realclean.
565
5661994-11-28 Richard Stallman <rms@bethel>
567
568 * lwlib-int.h (safe_strdup): Don't use ANSI argument prototype.
569
5701994-11-15 Paul Reilly <pmr@duality.gnu.ai.mit.edu>
571
572 * lwlib.c (lw_refigure_widget): Use the macro USE_XAW rather than XAW.
573
5741994-11-08 Paul Reilly <pmr@duality.gnu.ai.mit.edu>
575
576 * lwlib-Xm.c (make_menu_in_widget): Differentiate a separator
577 entry ("--") from a title.
578 (xm_pop_down_callback): Filter all but the last pop down callbacks.
579
5801994-11-07 Paul Reilly <pmr@duality.gnu.ai.mit.edu>
581
582 * lwlib-Xm.c (update_one_menu_entry): Use the parent of the
583 cascade button as the parent of the pulldown, rather than the
584 cascade button itself. This works around a Motif SIGSEGV in the
585 function `InSharedMenuHierarchy'.
586
5871994-10-29 Richard Stallman <rms@duality.gnu.ai.mit.edu>
588
589 * xlwmenu.c (xlwmenu_default_font): New global variable.
590 (XlwMenuInitialize): Use xlwmenu_default_font to default
591 the font if necessary. Make mw, itself, an argument.
592
5931994-10-26 Richard Stallman <rms@duality.gnu.ai.mit.edu>
594
595 * xlwmenu.c (pop_up_menu): Pass a Display * to x_catch_errors, etc.
596
5971994-10-26 Richard Stallman <rms@mole.gnu.ai.mit.edu>
598
599 * xlwmenu.c (xlwmenu_default_font): New global variable.
600 (XlwMenuInitialize): Use xlwmenu_default_font to default
601 the font if necessary. Make mw, itself, an argument.
602
603 * xlwmenu.c (pop_up_menu): Pass a Display * to x_catch_errors, etc.
604
6051994-10-08 Richard Stallman <rms@mole.gnu.ai.mit.edu>
606
607 * xlwmenu.c (fit_to_screen): Don't put the menu off the left or top.
608
6091994-10-02 Paul Reilly <pmr@geech.gnu.ai.mit.edu>
610
611 * xlwmenu.c (display_menu_item): Add support for displaying the
612 title in pop up menus.
613
614 * lwlib.c (lw_set_main_areas): Use xm_set_main_areas().
615 (lw_manage_resizing): Use xm_manage_resizing() for Emacs/Motif.
616
6171994-09-25 Paul Reilly <pmr@geech.gnu.ai.mit.edu>
618
619 * lwlib-Xaw.c (xaw_create_main): New function to support the
620 toolkit independent creation of the main Emacs widget. *
621 lwlib-Xlw.c (xlw_create_menubar): When compiling under Emacs, set
622 resizing resources to disable showGrip and to enable both
623 resizeToPreferred and allowShellResize.
624
625 * lwlib-Xm.h: Declare xm_set_main_areas, xm_manage_resizing.
626
627 * lwlib-Xm.c: (make_menu_in_widget): Add support for displaying a
628 title in pop up menus.
629 (make_main, xm_set_main_areas, xm_manage_resizing): New functions to
630 create and manage a Motif Main Window widget.
631
632 * xlwmenu.c: Add #include <X11/ObjectP.h> for X11R4.
633
6341994-09-18 Fred Pierresteguy <F.Pierresteguy@frcl.bull.fr>
635
636 * lwlib-Xm.c (make_dialog): When there is more than two pushbuttons,
637 set XmPACK_TIGHT and XmHORIZONTAL to the rowcolumn. Also add a
638 margin of 10 pixels.
639
6401994-09-16 Paul Reilly <pmr@geech.gnu.ai.mit.edu>
641
642 * lwlib-Xm.c (make_main): New function to support toolkit
643 independent creation of the main Emacs widget.
644 (make_destroyed_instance): Use safe_strdup() instead of strdup().
645
646 * lwlib-int.h: Declare safe_strdup.
647
648 * lwlib.c (lw_refigure_widget): New function. Handle geometry
649 management inside lwlib instead of in Emacs.
650 (lw_window_is_in_menubar): New function. Determine if the pointer
651 is in a menubar.
652 (lw_set_main_areas): New function. Set the main window widgets for
653 Motif.
654
655 * lwlib.h: Declare lw_refigure_widget(), lw_window_is_in_menubar(),
656 lw_set_main_areas().
657
658 * xlwmenu.h: Define Xt{Ns,CS}howGrip, Xt{Nr,CR}esizeToPreferred, and
659 Xt{Na,CA}llowResize.
660
661 * xlwmenu.c (Start): Use pop_up_menu() to post the submenus.
662 (Select): Remove the pointer grab when popping down a menubar
663 submenu.
664 (pop_up_menu): Handle popping up submenus from a menubar, i.e. when
665 the menu widget parent is not a shell widget.
666
6671994-08-25 Richard Stallman <rms@mole.gnu.ai.mit.edu>
668
669 * xlwmenu.c (pop_up_menu): Clear next_release_must_exit.
670 (Start): Clear next_release_must_exit when popping up the menu.
671
6721994-08-24 Richard Stallman <rms@mole.gnu.ai.mit.edu>
673
674 * xlwmenu.c (Start): Set menu_post_event or next_release_must_exit.
675 (Select): Do nothing if the menu should be left posted.
676
6771994-07-28 Richard Stallman <rms@mole.gnu.ai.mit.edu>
678
679 * xlwmenu.c (make_windows_if_needed, pop_up_menu):
680 Enable mouse motion events even when no button down.
681
6821994-07-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
683
684 * xlwmenu.c (pointer_grabbed): New variable.
685 (pop_up_menu): Set the variable.
686 (XlwMenuDestroy): Maybe call XtUngrabPointer.
687
6881994-05-25 Richard Stallman (rms@mole.gnu.ai.mit.edu)
689
690 * lwlib.c (max): Function deleted. Define as macro instead,
691 but only if not already defined.
692
6931994-05-20 Richard Stallman (rms@mole.gnu.ai.mit.edu)
694
695 * xlwmenu.c (xlwMenuResources): Use XtRDimension for shadow thickness.
696
6971994-05-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
698
699 * lwlib-Xaw.c (xaw_pop_instance): Use XtSetValues, not XtMoveWidget.
700
7011994-05-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
702
703 * lwlib.c (lwlib_memset: New function, used instead of memset.
704 All callers changed.
705 * lwlib.c (lwlib_bcopy): New function.
706 * lwlib-utils.c (XtApplyToWidgets): Use lwlib_bcopy.
707
708 * lwlib.c: Delete definitions for use of alloca.
709 (name_to_widget): Use xmalloc, not alloca.
710
7111994-05-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
712
713 * xlwmenu.c (XlwMenuDestroy): Set new var submenu_destroyed.
714 (XlwMenuRedisplay): If it's set, truncate the old_depth to 1.
715
7161994-05-09 Richard Stallman (rms@mole.gnu.ai.mit.edu)
717
718 * xrdb-cpp.c: Don't include string.h, unistd.h, stdlib.h.
719 * lwlib-Xaw.c: Don't include string.h, unistd.h, stdlib.h.
720 * lwlib-utils.c (XtApplyToWidgets): Use bcopy, not memcpy.
721 * lwlib-utils.c: Don't include string.h, unistd.h, stdlib.h, memory.h.
722 * xlwmenu.c: Don't include string.h, unistd.h, stdlib.h.
723 * lwlib.c: Don't include string.h, unistd.h, stdlib.h.
724 (safe_strdup): No longer static.
725 * lwlib-Xm.c: Use safe_strdup, not strdup.
726
727 * xlwmenu.c (string_width): No longer static.
728
7291994-05-06 Richard Stallman (rms@mole.gnu.ai.mit.edu)
730
731 * xlwmenuP.h (struct _XlwMenu_part): Use Pixel and Cursor
732 for foreground and cursor_shape fields.
733
734 * xlwmenu.c (XlwMenuSetValues): Check for change of font.
735
7361994-04-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
737
738 * Makefile.in: Delete all SRCS variables (unused).
739 (lwlib.o, xrdb-cpp.o): Mention srcdir in dep.
740
7411994-04-15 Richard Stallman (rms@mole.gnu.ai.mit.edu)
742
743 * Makefile.in (ALL_CFLAGS): Don't define THIS_IS_X11R4.
744
745 * xrdb.c: Define HAVE_X11R5 as in xterm.h.
746 Include X11/Xlib.h, X11/cursorfont.h and X11/Xutil.h.
747 (_XtDisplayInitialize): Test HAVE_X11R5.
748
749 * dispatch.c: Define HAVE_X11R5 as in xterm.h.
750 Include X11/Xlib.h, X11/cursorfont.h and X11/Xutil.h.
751 (_XtConvertTypeToMask): Conditionalize on HAVE_X11R5.
752 (WouldDispatchEvent): Likewise.
753
7541994-04-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
755
756 * lwlib-Xaw.c (xaw_generic_callback): Declare without arg names.
757
7581994-04-01 Frederic Pierresteguy (fp@hal.gnu.ai.mit.edu)
759
760 * lwlib-Xaw.c (make_dialog): Don't allow any geometry request from the
761 user.
762
7631994-03-22 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu)
764
765 * xlwmenu.c (XlwMenuResize): Don't allow the popup menu to resize
766 itself. Therefore reset the size to its initial value.
767
7681994-03-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
769
770 * lwlib-Xaw.c (xaw_update_one_widget): Finish replacing XtVaSetValues.
771 Don't test for scrollbar widget.
772
7731994-03-14 Frederic Pierresteguy (fp@gnu.ai.mit.edu)
774
775 * lwlib-int.h: Declare lw_get_widget_info.
776
777 * lwlib.c (lw_get_widget_info): Comment out arg in function decl.
778
779 * lwlib-Xaw.h: Comment out args in function decls.
780 * lwlib-Xaw.c: Convert all function definitions to non-prototype K&R.
781 (xaw_update_one_widget - case dialogWidgetClass): Call XtSetValues,
782 not XtVaSetValues.
783
7841994-03-11 Frederic Pierresteguy (F.Pierresteguy@frcl.bull.fr)
785
786 * xlwmenu.c (display_menu_item): Modify parameters to draw_arrow to
787 right justify the arrow in the pane.
788
789 * lwlib.c: If not defined USE_MOTIF and defined USE_LUCID then
790 define USE_XAW.
791
792 * Makefile.in (LUCID_SRCS, LUCID_OBJS): Add the target lwlib-Xaw.[oc].
793
794 * lwlib.c, lwlib-int.h: Merged from Lucid 19.9 release.
795 * lwlib.c (_AIX): Replace the AIXV3 directive.
796 (USE_XAW): New macro to conditionalize the use of the athena toolkit.
797 (lw_get_widget_info): New function.
798 (set_one_value): Handle USE_XAW.
799 (instanciate_widget_instance): Likewise.
800 (destroy_one_instance): Likewise.
801 (lw_pop_all_widgets): Likewise.
802 (lw_pop_down_all_widgets): Likewise.
803 (get_one_value): Likewise.
804
805 * lwlib-Xaw.c, lwlib-Xaw.h: New files.
806
8071994-02-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
808
809 * xlwmenu.c (XlwMenuInitialize, XlwMenuDestroy): Undo previous changes.
810
811 * lwlib-Xlw.c (xlw_create_menubar, xlw_create_popup_menu):
812 Use XtCreate..., not XtVaCreate...
813 No need to copy instance->info->val any more.
814 (xlw_update_one_widget): Use XtSetValues, not XtVaSetValues.
815
8161994-02-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
817
818 * xlwmenu.c (pop_up_menu): Call XtUngrabPointer if XtGrabPointer fails.
819
8201994-02-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
821
822 * Makefile.in (xrdb-cpp.o, lwlib.o): Put ALL_CFLAGS after other flags.
823
824 * lwlib-Xlw.c (xlw_create_menubar): Don't call free_widget_value.
825 Use malloc for allocation.
826 (xlw_create_popup_menu): Likewise.
827
8281994-02-18 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu)
829
830 * lwlib.c (malloc_cpt): New static variable.
831 (malloc_widget_value): Increment malloc_cpt when allocating a cell.
832 (free_widget_value): Really free the cells when the number of
833 allocated ones is bigger than 25.
834
835 * lwlib-Xlw.c (xlw_create_menubar): Call malloc_widget_value and
836 free_widget_value instead of XtMalloc and XtFree.
837 (xlw_create_popup_menu): Likewise.
838
8391994-02-17 Richard Stallman (rms@mole.gnu.ai.mit.edu)
840
841 * Makefile.in (ALL_CFLAGS): Specify -Demacs.
842
843 * xlwmenu.c (pop_up_menu) [emacs]: Catch and ignore X protocol errors
844 in XtGrabPointer.
845
8461994-02-17 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu)
847
848 * lwlib-Xlw.c (xlw_create_popup_menu): Pass tem to
849 XtVaCreateManagedWidget, not instance->info->val.
850 (xlw_create_menubar): Likewise.
851
8521994-02-15 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu)
853
854 * lwlib-Xlw.c (xlw_create_popup_menu): Copy instance->info->val
855 before calling XtVaCreateManagedWidget and then free the copy.
856 (xlw_create_menubar): Likewise.
857
8581994-02-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
859
860 * xlwmenu.c (XlwMenuInitialize): Copy mw->menu.contents.
861 (XlwMenuDestroy): Free mw->menu.contents.
862
8631994-02-09 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu)
864
865 * xlwmenu.c (display_menu_item): Call draw_shadow_rectangle to make
866 visible/invisible the selection of the menubar items.
867
8681994-02-08 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
869
870 * lwlib.c (strcasecmp): Renamed to my_strcasecmp.
871 (find_in_table): Changed only caller.
872
8731994-02-04 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu)
874
875 * xlwmenu.c (display_menu_item): When dealing with the menubar,
876 always call XDrawRectangle to clear the selection after popping down
877 the pulldown menu.
878
8791994-02-01 Richard Stallman (rms@mole.gnu.ai.mit.edu)
880
881 * lwlib.c: Include ctype.h.
882
8831994-01-31 Richard Stallman (rms@mole.gnu.ai.mit.edu)
884
885 * lwlib.c (strcasecmp): New function.
886
8871994-01-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
888
889 * xlwmenu.c, lwlib.c, lwlib-Xlw.c, lwlib-utils.c:
890 Convert all function definitions to non-prototype K&R.
891
892 * lwlib-Xlw.h: Comment out args in function decls.
893 * lwlib.h: Comment out args in function decls.
894 * lwlib-utils.h: Comment out args in function decls.
895
8961994-01-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
897
898 * lwlib.c: Include StringDefs.h after lwlib.h.
899
9001994-01-22 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
901
902 * Makefile (xrdb-cpp.o, lwlib.o): Use $(srcdir) and file name
903 instead of $*.
904 (dispatch.o, xrdb.o, lwlib-Xm.o): Rules removed; they were
905 superfluous and didn't work when configured outside srcdir. The
906 implicit .c.o rule works fine.
907
9081994-01-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
909
910 * xlwmenu.c (resource_widget_value): Avoid using strdup.
911
9121994-01-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
913
914 * Makefile.in: New file.
915
916 * lwlib-Xolmb.c: Renamed from lwlib-Xol-mb.c.
917 * lwlib-Xolmb.h: Renamed from lwlib-Xol-mb.h.
918 * lwlib-XolmbP.h: Renamed from lwlib-Xol-mbP.h.
919
920 * lwlib-int.h: Renamed from lwlib-internal.h.
921
922
923
6922b018
KH
924;; Local Variables:
925;; coding: iso-2022-7bit-unix
926;; End: