(x_alloc_lighter_color_for_widget):
[bpt/emacs.git] / lwlib / ChangeLog
CommitLineData
caccd8f2
MB
12000-08-30 Miles Bader <miles@gnu.org>
2
3 * xlwmenu.c (XlwMenuSetValues): If the background color has
4 changed, re-make the shadow-gcs too.
5
f4988be7
GM
62000-08-03 Gerd Moellmann <gerd@gnu.org>
7
8 * lwlib.c, lwlib-Xm.c, lwlib-Xaw.c: Use NULL at the end of the
9 variable argument lists of XtVaSetValues and XtVaGetValues
10 functions because 0 is not sufficient on systems where sizeof
11 (int) < sizeof (void *).
12
47db06aa
GM
132000-07-19 Gerd Moellmann <gerd@gnu.org>
14
15 * xlwmenu.c [emacs]: Don't include <X11/bitmaps/gray> because that
16 leads to redefinition errors when static is defined as empty in
17 config.h. Refer to the gray bitmap in xfns.c, instead.
18
cdefcd82
DL
192000-07-18 Dave Love <fx@gnu.org>
20
21 * lwlib-utils.c (XtApplyToWidgets): Cast args of lwlib_bcopy.
22
af5e64bc
DL
232000-06-23 Dave Love <fx@gnu.org>
24
25 * lwlib-Xlw.c (xlw_popup_menu): Cast arg of pop_up_menu.
26
27 * lwlib-utils.c: Include lwlib.h.
28
0a2ea235
GM
292000-06-16 Gerd Moellmann <gerd@gnu.org>
30
31 * xlwmenuP.h (_XlwMenu_part): Add free_top_shadow_color_p and
32 free_bottom_shadow_color_p.
33
34 * xlwmenu.c (make_shadow_gcs): Set free_top_shadow_color_p
35 and free_top_shadow_color_p flags in the menu widget if
36 top and bottom shadow colors must be freed.
37 (release_shadow_gcs): Free colors only if they must be freed.
38
ed1056b3
GM
392000-06-12 Gerd Moellmann <gerd@gnu.org>
40
41 * xlwmenu.c (make_shadow_gcs): Free and copy colors so that
42 color reference counts are right.
43 (release_shadow_gcs): Free colors.
44
bb2337f5
DL
452000-06-06 Dave Love <fx@gnu.org>
46
47 * xlwmenu.c (x_alloc_nearest_color_for_widget, x_catch_errors)
48 (x_uncatch_errors, x_had_errors_p, x_clear_errors): Add prototypes
49 -- should be moved into separate header.
50 (make_shadow_gcs) <x_alloc_nearest_color_for_widget>: Cast first
51 arg.
52 (Start) <pop_up_menu>: Cast second arg.
53
54 * lwlib.c (P_): Use PROTOTYPES.
55 (safe_strdup): Declare arg const.
56 (lw_modify_all_widgets) <!info>: Return 0.
57
58 * lwlib-Xm.c (P_): Use PROTOTYPES.
59
60 * xlwmenu.h, lwlib.h, lwlib-utils.h, lwlib-int.h, lwlib-Xm.h:
61 * lwlib-Xlw.h, lwlib-Xaw.h: Enable prototypes.
62
63 * lwlib-Xaw.c (xaw_popup_menu): Add EVENT arg.
64
65 * Makefile.in (lwlib.o): Depend on lwlib-Xlw.h.
66 (lwlib-Xlw.o): Depend on lwlib-Xlw.h.
67 (lwlib-Xaw.o): Depend on lwlib-Xaw.h.
68 (lwlib-Xm.o): Depend on lwlib-Xm.h.
69
9b2f3c38
GM
702000-03-12 Gerd Moellmann <gerd@gnu.org>
71
72 * lwlib-Xm.c (make_menubar) [LESSTIF_VERSION]: Don't set
73 XmNresizeHeight and XmNresizeWidth.
74
7397acc4
DL
752000-03-08 Dave Love <fx@gnu.org>
76
77 * Makefile.in (liblw.a): Don't bother testing for ranlib failing
78 since configure sets it up.
79
1d4d17e2
GM
802000-03-06 Gerd Moellmann <gerd@gnu.org>
81
82 * lwlib-Xm.c (make_menubar): Set XmNresizeHeight and
83 XmNresizeWidth resources only if LESSTIF_VERSION is defined.
84
566f7ec8
GM
852000-03-05 Gerd Moellmann <gerd@gnu.org>
86
87 * lwlib-Xm.c (xm_manage_resizing): Rewritten.
88
89 * lwlib.c (lw_modify_all_widgets): Return non-zero if widget
90 tree was changed.
91 (merge_widget_value): Add parameter CHANGE_P. Set *CHANGE_P
92 to 1 if a change occurs.
93
94 * lwlib.h (lw_modify_all_widgets): Change prototype.
95
64d739c4
GM
962000-03-04 Gerd Moellmann <gerd@gnu.org>
97
98 * xlwmenu.c (make_shadow_gcs): Use the widget's colormap instead
99 of the screen's default colormap.
100
b6a22bf8
GM
1012000-02-18 Gerd Moellmann <gerd@gnu.org>
102
103 * lwlib.c (merge_widget_value): Fix incorrect assignment of
104 safe_strdup'd help string.
105
e12489f9
GM
1062000-01-25 Gerd Moellmann <gerd@gnu.org>
107
108 * lwlib-Xm.c (make_menu_in_widget): Don't add XmNpopdownCallback,
109 add XmNunmapCallback.
110 (xm_unmap_callback): New function.
111 (xm_pull_down_callback): Call pre-activate callback only if
112 parent is the menu bar.
113
52b8dbf9
GM
1142000-01-17 Gerd Moellmann <gerd@gnu.org>
115
116 * lwlib-Xm.c (xm_arm_callback): New function.
117 (make_menu_in_widget): Set xm_arm_callback as XmNarmCallback and
118 XmNdisarmCallback for buttons (not supported for other widgets).
d36100c9 119 (make_menubar): Set XmNresizeHeight and XmNresizeWidth to False.
52b8dbf9
GM
120
121 * lwlib-Xlw.c (highlight_hook): New function.
122 (xlw_create_menubar, xlw_create_popup_menu): Add highlight_hook as
123 callback XtNhighlightCallback.
124
125 * lwlib.c (copy_widget_value_tree): Copy help string.
126 (free_widget_value_tree): Free help string.
127 (merge_widget_value): Handle help string.
128 (allocate_widget_info, lw_register_widget, lw_create_widget): Add
129 parameter HIGHLIGHT_CB.
130 (lw_get_widget_instance): New function.
131
132 * lwlib-int.h: Add prototype for lw_get_widget_instance.
133
134 * lwlib.h (_widget_value): Add help string.
135
136 * xlwmenu.c (xlwMenuResources): All XtNhighlightCallback.
137 (remap_menubar): Call highlight callback.
138
139 * xlwmenu.h (XtNhighlightCallback): New define.
140
141 * xlwmenuP.h (_XlwMenu_part): Add `highlight' callback list.
142
0f0912e6
PE
1431999-10-19 Paul Eggert <eggert@twinsun.com>
144
145 Add support for large files, plus some locale improvements.
146
147 * dispatch.c, lwlib-Xaw.c, lwlib-Xlw.c, lwlib-Xm.c, lwlib.c, xlwmenu.c,
148 xrdb-cpp.c, xrdb.c:
149 Include <config.h> before any system include files.
150
151 * lwlib-Xm.c, lwlib.c:
152 Do not include <stdlib.h> or <string.h>, as <config.h> does this.
153
f5737ad2
GM
1541999-10-07 Gerd Moellmann <gerd@gnu.org>
155
156 * lwlib-Xm.c (make_menu_in_widget, update_one_menu_entry): Use
157 widgets instead of gadgets to be able to set colors.
158
387581d8
DL
1591999-09-17 Richard Stallman <rms@gnu.org>
160
161 * lwlib-Xaw.c (wm_delete_window): Check all the shell's children,
162 not just the first, to find the dialog box.
163
1641999-09-14 Gerd Moellmann <gerd@gnu.org>
165
166 * lwlib.c (lw_separator_p): Check for new-style separators
167 differently.
168
1691999-09-10 Gerd Moellmann <gerd@gnu.org>
170
171 * lwlib.c (lw_separator_p): Add `--:space' with the same
172 meaning as `--:noLine'.
173
1741999-09-06 Gerd Moellmann <gerd@gnu.org>
175
176 * lwlib.c (lw_separator_p): Add alternative separator type names.
177
1781999-09-03 Gerd Moellmann <gerd@gnu.org>
179
180 * xlwmenu.c (make_shadow_gcs): Call
181 x_alloc_nearest_color_for_widget.
182
32660797
GM
1831999-07-12 Gerd Moellmann <gerd@gnu.org>
184
185 * lwlib-Xm.c: Add function prototypes.
186
187 * lwlib-Xm.c (xm_update_label): Use val->name to look up
188 a label string from resources.
189 (xm_update_label): Add some comments.
190
1911999-07-12 Gerd Moellmann <gerd@gnu.org>
192
193 * xlwmenu.c (all_dashes_p): Removed.
194 (size_menu_item): Call lw_separator_p.
195 (display_menu_item): Ditto.
196 (display_menu): Ditto.
197 (draw_separator): New.
198 (display_menu_item): Call it.
199 (separator_height): New.
200 (size_menu_item): Call it.
201
202 * lwlib-Xm.c (all_dashes_p): Removed.
203 (make_menu_in_widget): Use lw_separator_p. Set Motif separator
204 type.
205
206 * lwlib.c (lw_separator_p): New.
207
208 * lwlib.h (enum menu_separator): New.
209
2101999-07-12 Gerd Moellmann <gerd@gnu.org>
211
212 * lwlib-Xm.c (make_menu_in_widget): Set alignment of menu
213 title after all widgets have been created.
214
2151999-07-12 Gerd Moellmann <gerd@gnu.org>
216
217 * xlwmenu.c (toggle_button_width): Renamed from
218 toggle_or_radio_button_width.
219 (radio_button_width): New.
220 (size_menu_item): Use new functions.
221 (draw_shadow_rhombus): New.
222 (draw_radio): Use radio_button_width and draw_shadow_rhombus.
223 (draw_toggle): Use toggle_button_width.
224
2251999-07-12 Gerd Moellmann <gerd@gnu.org>
226
227 * lwlib-Xm.c (xm_update_toggle): Add callback xm_generic_callback
228 instead of xm_internal_update_other_instances.
229
230 * lwlib-Xm.c (make_menu_in_widget): Do help button before managing
231 children to get it to the right place.
232 (make_menu_in_widget): Create toggle buttons.
233 (update_one_menu_entry): Update toggle buttons.
234
235 * xlwmenu.c (size_menu_item): Add parameter button_width.
236 (size_menu): Compute button_width.
237 (toggle_or_radio_button_width): New.
238 (draw_toggle): New.
239 (draw_radio): New.
240 (draw_shadow_rectangle): Add parameter `down_p'.
241
242 * xlwmenuP.h (_window_state): Add button_width.
243
2441999-07-12 Gerd Moellmann <gerd@gnu.org>
245
246 * xlwmenu.c (make_shadow_gcs) ]emacs]: Use x_alloc_nearest_color.
247
248 * lwlib.c (merge_widget_value): Handle button_type.
249 (copy_widget_value_tree): Copy button_type.
250
251 * lwlib.h (enum button_type): New.
252 (_widget_value): New member button_type.
253
2541999-07-12 Gerd Moellmann <gerd@gnu.org>
255
256 * lwlib-Xm.c (make_menu_in_widget): Test for menubar widgets
257 using XmNrowColumnType.
258
2591999-07-12 Gerd Moellmann <gerd@gnu.org>
260
261 * xlwmenu.c (abort_gracefully): New.
262 (display_menu): Use it instead of abort.
263 (size_menu): Ditto.
264
2651999-07-12 Gerd Moellmann <gerd@gnu.org>
266
267 * xlwmenu.c (xlwMenuResources): Change previously unused
268 XtNmargin to 4.
269 (size_menu): Take margin into account.
270 (display_menu_item): Ditto.
271 (remap_menubar): Ditto.
272 (draw_arrow): Draw it 3D.
273
a08cb76c
DL
2741999-07-12 Richard Stallman <rms@gnu.org>
275
276 * Version 20.4 released.
277
2781998-08-19 Richard Stallman <rms@psilocin.ai.mit.edu>
279
280 * Version 20.3 released.
281
2821998-07-30 Paul Eggert <eggert@twinsun.com>
283
284 * lwlib/Makefile.in (lwlib-utils.o, lwlib.o, lwlib-Xlw.o)
285 (lwlib-Xaw.o, lwlib-Xm.o, lwlib-Xol.o, lwlib-Xolmb.o):
286 Add dependencies to corresponding .c files. for Solaris 2.x VPATH make.
287
2881998-04-06 Andreas Schwab <schwab@gnu.org>
289
290 * lwlib.c: Always declare xmalloc.
291 [USE_XAW]: Include <X11/Xaw/Paned.h>.
292 (lwlib_memset, lwlib_bcopy): Explicitly declare return type.
293
2941997-12-20 Richard Stallman <rms@delysid.gnu.org>
295
296 * lwlib-Xm.c (update_one_menu_entry):
297 Add conditional in case XmNpositionIndex is missing.
298
2991997-12-20 Richard Stallman <rms@psilocin.gnu.org>
300
301 * lwlib-Xm.c (update_one_menu_entry):
302 Add conditional in case XmNpositionIndex is missing.
303
3041997-09-19 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
305
306 * Version 20.2 released.
307
308 * xlwmenu.c (motion_event_is_in_menu): Extend the left and
309 top windows by the shadow width.
310
3111997-09-15 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
312
313 * Version 20.1 released.
314
3151997-07-23 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
316
317 * xlwmenu.c (display_menu): If an item is disabled,
318 don't display its submenu (if any).
319
3201997-05-01 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
321
322 * xlwmenu.c (pop_up_menu): Update the call to x_catch_errors.
323
3241997-01-21 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
325
326 * xlwmenu.c (fit_to_screen): If new menu would overlap the previous
327 one from the side, try moving it up or down.
328
3291996-08-11 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
330
331 * Version 19.33 released.
332
333 * lwlib-Xm.c (update_one_menu_entry): Fix previous change:
334 When XmIsCascadeButton, don't call XmCreateCascadeButtonGadget,
335 just modify the existing one.
336
3371996-08-09 Marcus Daniels <marcus@sayre.sysc.pdx.edu>
338
339 * lwlib.c (merge_widget_value): Undo previous change.
340
341 * lwlib-Xm.c (update_one_menu_entry): When creating a pulldown
342 in an existing but empty menu item, in order to get a new functional
343 pulldown, the menu item must be switched from an XmPushButtonGadget
344 into a XmCascadeButtonGadget.
345
3461996-07-31 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
347
348 * Version 19.32 released.
349
3501996-07-31 Marcus Daniels <marcus@sayre.sysc.pdx.edu>
351
352 * lwlib-Xm.c (make_menubar): Turn off menu accelerator.
353
3541996-07-24 Marcus Daniels <marcus@sayre.sysc.pdx.edu>
355
356 * lwlib.c (merge_widget_value) [USE_MOTIF]: Pass along the change
357 flag from merged_contents.
358
3591996-07-13 Karl Heuer <kwzh@gnu.ai.mit.edu>
360
361 * lwlib-Xm.c (xm_update_menu): Fix loop termination test.
362
3631996-07-07 Karl Heuer <kwzh@gnu.ai.mit.edu>
364
365 * lwlib-Xm.h, lwlib-Xm.c, lwlib.h, lwlib.c: Undo previous change.
366
3671996-07-03 Marcus Daniels <marcus@sayre.sysc.pdx.edu>
368
369 * lwlib-Xm.h: Declare lw_motif_menu_related_event_p.
370
371 * lwlib-Xm.c (lw_motif_menu_related_event_p): A predicate to
372 identify keyboard events intended only for menus.
373
374 * lwlib.h: Declare lw_toolkit_related_event_p.
375
376 * lwlib.c (lw_toolkit_related_event_p): A predicate to identify
377 toolkit-specific events.
378
3791996-06-07 Marcus Daniels <marcus@sayre.sysc.pdx.edu>
380
381 * lwlib-Xm.c (make_menu_in_widget): Set mapping delay
382 for cascade buttons to zero.
383
3841996-05-25 Karl Heuer <kwzh@gnu.ai.mit.edu>
385
386 * Version 19.31 released.
387
3881996-03-31 Richard Stallman <rms@mole.gnu.ai.mit.edu>
389
390 * lwlib-Xm.c (destroy_all_children): When freeing a cascade button,
391 free its submenu too.
392 (make_menu_in_widget): Use a cascade button gadget, not a widget.
393 Include Xm/CascadeBG.h.
394
3951996-03-29 Richard Stallman <rms@mole.gnu.ai.mit.edu>
396
397 * Makefile.in (tags): New target.
398
3991996-03-28 Richard Stallman <rms@mole.gnu.ai.mit.edu>
400
401 * Makefile.in (TAGS): Renamed from `tags' and fixed to work.
402
4031996-03-26 Richard Stallman <rms@mole.gnu.ai.mit.edu>
404
405 * Makefile.in (xlwmenu.o): New explicit target.
406
4071996-03-24 Richard Stallman <rms@mole.gnu.ai.mit.edu>
408
409 * lwlib.h (struct widget_value): New field this_one_change.
410 * lwlib.c (merge_widget_value): Set the this_one_change field.
411 * lwlib-Xm.c (destroy_all_children): New arg first_child_to_destroy.
412 (make_menu_in_widget): New arg keep_first_children.
413 (xm_update_menu): Preserve the first children even if later ones
414 have a structural change.
415 (update_one_menu_entry): Use this_one_change field.
416
4171996-03-01 Richard Stallman <rms@mole.gnu.ai.mit.edu>
418
419 * xlwmenu.c (motion_event_is_in_menu): Make x and y signed.
420
4211996-02-25 Richard Stallman <rms@mole.gnu.ai.mit.edu>
422
423 * lwlib.c (lw_window_is_in_menubar) [USE_MOTIF]:
424 With Motif, the window WIN can be the menu bar widget itself.
425
4261996-02-21 Richard Stallman <rms@whiz-bang.gnu.ai.mit.edu>
427
428 * lwlib.c (free_widget_value_tree, merge_widget_value):
429 Use XtFree for the toolkit_data.
430
4311996-02-19 Karl Heuer <kwzh@gnu.ai.mit.edu>
432
433 * lwlib.c (lw_internal_update_other_instances): Move static var
434 outside the function, and rename it to lwlib_updating.
435
4361996-01-04 Paul Eggert <eggert@twinsun.com>
437
438 * lwlib.c (instantiate_widget_instance): Renamed from
439 instanciate_widget_instance (spelling correction).
440 All callers changed.
441
4421995-12-31 Richard Stallman <rms@mole.gnu.ai.mit.edu>
443
444 * xlwmenu.c (xlwMenuActionsList): Add "key" and "nothing".
445 (xlwMenuTranslations): Add translations for Key, KeyUp,
446 and for the modifier keysyms.
447 (Nothing, Key): New functions.
448
4491995-12-24 Richard Stallman <rms@mole.gnu.ai.mit.edu>
450
451 * xlwmenu.c (XlwMenuSetValues): Do redisplay if non-null contents
452 get replaced by empty contents.
453
454 * lwlib.c (merge_widget_value): Treat disappearance of entire contents
455 as a STRUCTURAL_CHANGE.
456
4571995-12-20 Richard Stallman <rms@whiz-bang.gnu.ai.mit.edu>
458
459 * lwlib-utils.c: Add #undef for index and rindex.
460
4611995-11-24 Richard Stallman <rms@mole.gnu.ai.mit.edu>
462
463 * Version 19.30 released.
464
4651995-11-13 Richard Stallman <rms@mole.gnu.ai.mit.edu>
466
467 * xlwmenu.c (display_menu_item): Fix previous change.
468
4691995-11-04 Richard Stallman <rms@whiz-bang.gnu.ai.mit.edu>
470
471 * xlwmenu.c (display_menu_item): Don't treat buttons specially.
472
4731995-08-14 Richard Stallman <rms@mole.gnu.ai.mit.edu>
474
475 * Makefile.in (RANLIB): Get this var from configure.
476
4771995-08-02 Richard Stallman <rms@mole.gnu.ai.mit.edu>
478
479 * lwlib.c (lw_popup_menu): New arg `event', passed along.
480 * lwlib-Xlw.c (xlw_popup_menu): New arg `event'.
481 * lwlib-Xm.c (xm_popup_menu): New arg `event'.
482
4831995-06-19 Richard Stallman <rms@mole.gnu.ai.mit.edu>
484
485 * Version 19.29 released.
486
4871995-06-11 Richard Stallman <rms@gnu.ai.mit.edu>
488
489 * lwlib.c (lwlib_toolkit_type): New variable.
490
4911995-05-26 Richard Stallman <rms@gnu.ai.mit.edu>
492
493 * xlwmenu.c (Drag): Do nothing unless menu.popped_up field is set.
494
4951995-05-22 Karl Heuer <kwzh@hal.gnu.ai.mit.edu>
496
497 * xlwmenu.c (XlwMenuInitialize): Cast XCreatePixmapFromBitmapData args.
498
4991995-05-20 Karl Heuer <kwzh@nutrimat.gnu.ai.mit.edu>
500
501 * lwlib.c: Don't use prototype.
502 * lwlib-Xm.c (activate_button, xm_update_cascadebutton): Likewise.
503
5041995-05-05 Richard Stallman <rms@mole.gnu.ai.mit.edu>
505
506 * lwlib.c (lw_refigure_widget) [USE_MOTIF]: Fix backward if.
507
5081995-05-04 Richard Stallman <rms@mole.gnu.ai.mit.edu>
509
510 * Makefile.in (ALL_CFLAGS): Add -I../src.
511
5121995-05-03 Morten Welinder <terra+@cs.cmu.edu>
513
514 * lwlib.c [__osf__]: Include string.h and stdlib.h.
515 [__osf__] (xmalloc): Declared.
516
5171995-04-13 Richard Stallman <rms@mole.gnu.ai.mit.edu>
518
519 * lwlib-Xm.c (update_one_menu_entry, make_menu_in_widget):
520 Specify more useful names in XmCreatePulldownMenu calls.
521
522 * lwlib-Xaw.c (xaw_pop_instance): Make x, y, w, h unsigned.
523
524 * xlwmenu.c (size_menu): Make height and label_width unsigned.
525 (fit_to_screen): Make screen_width and screen_height unsigned.
526 (motion_event_is_in_menu): Make x, y unsigned.
527
5281995-04-09 Richard Stallman <rms@mole.gnu.ai.mit.edu>
529
530 * lwlib-utils.c: If HAVE_CONFIG_H, include config.h.
531
532 * Makefile.in (ALL_CFLAGS): Define HAVE_CONFIG_H.
533 Add -I${srcdir}/../src.
534
5351995-04-08 Paul Reilly <pmr@geech.gnu.ai.mit.edu>
536
537 * lwlib-Xm.c: Remove function prototypes.
538 (xm_pop_down_callback): Call the deactivation callback only when
539 popping down the top level submenu.
540
5411995-04-07 Richard Stallman <rms@mole.gnu.ai.mit.edu>
542
543 * Makefile.in (lwlib.o): Depend on Makefile.
544
545 * lwlib-Xm.h: Remove function prototypes.
546
547 * lwlib-Xm.c (remove_grabs): Use type Widget for `menu'.
548
5491995-02-15 Paul Reilly <pmr@geech.gnu.ai.mit.edu>
550
551 * Makefile.in (ALL_CFLAGS): Allow include files to be found in
552 `srcdir'.
553
5541995-02-07 Richard Stallman <rms@pogo.gnu.ai.mit.edu>
555
556 * Makefile.in (maintainer-clean): Renamed from realclean.
557
5581994-11-28 Richard Stallman <rms@bethel>
559
560 * lwlib-int.h (safe_strdup): Don't use ANSI argument prototype.
561
5621994-11-15 Paul Reilly <pmr@duality.gnu.ai.mit.edu>
563
564 * lwlib.c (lw_refigure_widget): Use the macro USE_XAW rather than XAW.
565
5661994-11-08 Paul Reilly <pmr@duality.gnu.ai.mit.edu>
567
568 * lwlib-Xm.c (make_menu_in_widget): Differentiate a separator
569 entry ("--") from a title.
570 (xm_pop_down_callback): Filter all but the last pop down callbacks.
571
5721994-11-07 Paul Reilly <pmr@duality.gnu.ai.mit.edu>
573
574 * lwlib-Xm.c (update_one_menu_entry): Use the parent of the
575 cascade button as the parent of the pulldown, rather than the
576 cascade button itself. This works around a Motif SIGSEGV in the
577 function `InSharedMenuHierarchy'.
578
5791994-10-29 Richard Stallman <rms@duality.gnu.ai.mit.edu>
580
581 * xlwmenu.c (xlwmenu_default_font): New global variable.
582 (XlwMenuInitialize): Use xlwmenu_default_font to default
583 the font if necessary. Make mw, itself, an argument.
584
5851994-10-26 Richard Stallman <rms@duality.gnu.ai.mit.edu>
586
587 * xlwmenu.c (pop_up_menu): Pass a Display * to x_catch_errors, etc.
588
5891994-10-26 Richard Stallman <rms@mole.gnu.ai.mit.edu>
590
591 * xlwmenu.c (xlwmenu_default_font): New global variable.
592 (XlwMenuInitialize): Use xlwmenu_default_font to default
593 the font if necessary. Make mw, itself, an argument.
594
595 * xlwmenu.c (pop_up_menu): Pass a Display * to x_catch_errors, etc.
596
5971994-10-08 Richard Stallman <rms@mole.gnu.ai.mit.edu>
598
599 * xlwmenu.c (fit_to_screen): Don't put the menu off the left or top.
600
6011994-10-02 Paul Reilly <pmr@geech.gnu.ai.mit.edu>
602
603 * xlwmenu.c (display_menu_item): Add support for displaying the
604 title in pop up menus.
605
606 * lwlib.c (lw_set_main_areas): Use xm_set_main_areas().
607 (lw_manage_resizing): Use xm_manage_resizing() for Emacs/Motif.
608
6091994-09-25 Paul Reilly <pmr@geech.gnu.ai.mit.edu>
610
611 * lwlib-Xaw.c (xaw_create_main): New function to support the
612 toolkit independent creation of the main Emacs widget. *
613 lwlib-Xlw.c (xlw_create_menubar): When compiling under Emacs, set
614 resizing resources to disable showGrip and to enable both
615 resizeToPreferred and allowShellResize.
616
617 * lwlib-Xm.h: Declare xm_set_main_areas, xm_manage_resizing.
618
619 * lwlib-Xm.c: (make_menu_in_widget): Add support for displaying a
620 title in pop up menus.
621 (make_main, xm_set_main_areas, xm_manage_resizing): New functions to
622 create and manage a Motif Main Window widget.
623
624 * xlwmenu.c: Add #include <X11/ObjectP.h> for X11R4.
625
6261994-09-18 Fred Pierresteguy <F.Pierresteguy@frcl.bull.fr>
627
628 * lwlib-Xm.c (make_dialog): When there is more than two pushbuttons,
629 set XmPACK_TIGHT and XmHORIZONTAL to the rowcolumn. Also add a
630 margin of 10 pixels.
631
6321994-09-16 Paul Reilly <pmr@geech.gnu.ai.mit.edu>
633
634 * lwlib-Xm.c (make_main): New function to support toolkit
635 independent creation of the main Emacs widget.
636 (make_destroyed_instance): Use safe_strdup() instead of strdup().
637
638 * lwlib-int.h: Declare safe_strdup.
639
640 * lwlib.c (lw_refigure_widget): New function. Handle geometry
641 management inside lwlib instead of in Emacs.
642 (lw_window_is_in_menubar): New function. Determine if the pointer
643 is in a menubar.
644 (lw_set_main_areas): New function. Set the main window widgets for
645 Motif.
646
647 * lwlib.h: Declare lw_refigure_widget(), lw_window_is_in_menubar(),
648 lw_set_main_areas().
649
650 * xlwmenu.h: Define Xt{Ns,CS}howGrip, Xt{Nr,CR}esizeToPreferred, and
651 Xt{Na,CA}llowResize.
652
653 * xlwmenu.c (Start): Use pop_up_menu() to post the submenus.
654 (Select): Remove the pointer grab when popping down a menubar
655 submenu.
656 (pop_up_menu): Handle popping up submenus from a menubar, i.e. when
657 the menu widget parent is not a shell widget.
658
6591994-08-25 Richard Stallman <rms@mole.gnu.ai.mit.edu>
660
661 * xlwmenu.c (pop_up_menu): Clear next_release_must_exit.
662 (Start): Clear next_release_must_exit when popping up the menu.
663
6641994-08-24 Richard Stallman <rms@mole.gnu.ai.mit.edu>
665
666 * xlwmenu.c (Start): Set menu_post_event or next_release_must_exit.
667 (Select): Do nothing if the menu should be left posted.
668
6691994-07-28 Richard Stallman <rms@mole.gnu.ai.mit.edu>
670
671 * xlwmenu.c (make_windows_if_needed, pop_up_menu):
672 Enable mouse motion events even when no button down.
673
6741994-07-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
675
676 * xlwmenu.c (pointer_grabbed): New variable.
677 (pop_up_menu): Set the variable.
678 (XlwMenuDestroy): Maybe call XtUngrabPointer.
679
6801994-05-25 Richard Stallman (rms@mole.gnu.ai.mit.edu)
681
682 * lwlib.c (max): Function deleted. Define as macro instead,
683 but only if not already defined.
684
6851994-05-20 Richard Stallman (rms@mole.gnu.ai.mit.edu)
686
687 * xlwmenu.c (xlwMenuResources): Use XtRDimension for shadow thickness.
688
6891994-05-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
690
691 * lwlib-Xaw.c (xaw_pop_instance): Use XtSetValues, not XtMoveWidget.
692
6931994-05-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
694
695 * lwlib.c (lwlib_memset: New function, used instead of memset.
696 All callers changed.
697 * lwlib.c (lwlib_bcopy): New function.
698 * lwlib-utils.c (XtApplyToWidgets): Use lwlib_bcopy.
699
700 * lwlib.c: Delete definitions for use of alloca.
701 (name_to_widget): Use xmalloc, not alloca.
702
7031994-05-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
704
705 * xlwmenu.c (XlwMenuDestroy): Set new var submenu_destroyed.
706 (XlwMenuRedisplay): If it's set, truncate the old_depth to 1.
707
7081994-05-09 Richard Stallman (rms@mole.gnu.ai.mit.edu)
709
710 * xrdb-cpp.c: Don't include string.h, unistd.h, stdlib.h.
711 * lwlib-Xaw.c: Don't include string.h, unistd.h, stdlib.h.
712 * lwlib-utils.c (XtApplyToWidgets): Use bcopy, not memcpy.
713 * lwlib-utils.c: Don't include string.h, unistd.h, stdlib.h, memory.h.
714 * xlwmenu.c: Don't include string.h, unistd.h, stdlib.h.
715 * lwlib.c: Don't include string.h, unistd.h, stdlib.h.
716 (safe_strdup): No longer static.
717 * lwlib-Xm.c: Use safe_strdup, not strdup.
718
719 * xlwmenu.c (string_width): No longer static.
720
7211994-05-06 Richard Stallman (rms@mole.gnu.ai.mit.edu)
722
723 * xlwmenuP.h (struct _XlwMenu_part): Use Pixel and Cursor
724 for foreground and cursor_shape fields.
725
726 * xlwmenu.c (XlwMenuSetValues): Check for change of font.
727
7281994-04-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
729
730 * Makefile.in: Delete all SRCS variables (unused).
731 (lwlib.o, xrdb-cpp.o): Mention srcdir in dep.
732
7331994-04-15 Richard Stallman (rms@mole.gnu.ai.mit.edu)
734
735 * Makefile.in (ALL_CFLAGS): Don't define THIS_IS_X11R4.
736
737 * xrdb.c: Define HAVE_X11R5 as in xterm.h.
738 Include X11/Xlib.h, X11/cursorfont.h and X11/Xutil.h.
739 (_XtDisplayInitialize): Test HAVE_X11R5.
740
741 * dispatch.c: Define HAVE_X11R5 as in xterm.h.
742 Include X11/Xlib.h, X11/cursorfont.h and X11/Xutil.h.
743 (_XtConvertTypeToMask): Conditionalize on HAVE_X11R5.
744 (WouldDispatchEvent): Likewise.
745
7461994-04-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
747
748 * lwlib-Xaw.c (xaw_generic_callback): Declare without arg names.
749
7501994-04-01 Frederic Pierresteguy (fp@hal.gnu.ai.mit.edu)
751
752 * lwlib-Xaw.c (make_dialog): Don't allow any geometry request from the
753 user.
754
7551994-03-22 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu)
756
757 * xlwmenu.c (XlwMenuResize): Don't allow the popup menu to resize
758 itself. Therefore reset the size to its initial value.
759
7601994-03-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
761
762 * lwlib-Xaw.c (xaw_update_one_widget): Finish replacing XtVaSetValues.
763 Don't test for scrollbar widget.
764
7651994-03-14 Frederic Pierresteguy (fp@gnu.ai.mit.edu)
766
767 * lwlib-int.h: Declare lw_get_widget_info.
768
769 * lwlib.c (lw_get_widget_info): Comment out arg in function decl.
770
771 * lwlib-Xaw.h: Comment out args in function decls.
772 * lwlib-Xaw.c: Convert all function definitions to non-prototype K&R.
773 (xaw_update_one_widget - case dialogWidgetClass): Call XtSetValues,
774 not XtVaSetValues.
775
7761994-03-11 Frederic Pierresteguy (F.Pierresteguy@frcl.bull.fr)
777
778 * xlwmenu.c (display_menu_item): Modify parameters to draw_arrow to
779 right justify the arrow in the pane.
780
781 * lwlib.c: If not defined USE_MOTIF and defined USE_LUCID then
782 define USE_XAW.
783
784 * Makefile.in (LUCID_SRCS, LUCID_OBJS): Add the target lwlib-Xaw.[oc].
785
786 * lwlib.c, lwlib-int.h: Merged from Lucid 19.9 release.
787 * lwlib.c (_AIX): Replace the AIXV3 directive.
788 (USE_XAW): New macro to conditionalize the use of the athena toolkit.
789 (lw_get_widget_info): New function.
790 (set_one_value): Handle USE_XAW.
791 (instanciate_widget_instance): Likewise.
792 (destroy_one_instance): Likewise.
793 (lw_pop_all_widgets): Likewise.
794 (lw_pop_down_all_widgets): Likewise.
795 (get_one_value): Likewise.
796
797 * lwlib-Xaw.c, lwlib-Xaw.h: New files.
798
7991994-02-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
800
801 * xlwmenu.c (XlwMenuInitialize, XlwMenuDestroy): Undo previous changes.
802
803 * lwlib-Xlw.c (xlw_create_menubar, xlw_create_popup_menu):
804 Use XtCreate..., not XtVaCreate...
805 No need to copy instance->info->val any more.
806 (xlw_update_one_widget): Use XtSetValues, not XtVaSetValues.
807
8081994-02-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
809
810 * xlwmenu.c (pop_up_menu): Call XtUngrabPointer if XtGrabPointer fails.
811
8121994-02-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
813
814 * Makefile.in (xrdb-cpp.o, lwlib.o): Put ALL_CFLAGS after other flags.
815
816 * lwlib-Xlw.c (xlw_create_menubar): Don't call free_widget_value.
817 Use malloc for allocation.
818 (xlw_create_popup_menu): Likewise.
819
8201994-02-18 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu)
821
822 * lwlib.c (malloc_cpt): New static variable.
823 (malloc_widget_value): Increment malloc_cpt when allocating a cell.
824 (free_widget_value): Really free the cells when the number of
825 allocated ones is bigger than 25.
826
827 * lwlib-Xlw.c (xlw_create_menubar): Call malloc_widget_value and
828 free_widget_value instead of XtMalloc and XtFree.
829 (xlw_create_popup_menu): Likewise.
830
8311994-02-17 Richard Stallman (rms@mole.gnu.ai.mit.edu)
832
833 * Makefile.in (ALL_CFLAGS): Specify -Demacs.
834
835 * xlwmenu.c (pop_up_menu) [emacs]: Catch and ignore X protocol errors
836 in XtGrabPointer.
837
8381994-02-17 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu)
839
840 * lwlib-Xlw.c (xlw_create_popup_menu): Pass tem to
841 XtVaCreateManagedWidget, not instance->info->val.
842 (xlw_create_menubar): Likewise.
843
8441994-02-15 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu)
845
846 * lwlib-Xlw.c (xlw_create_popup_menu): Copy instance->info->val
847 before calling XtVaCreateManagedWidget and then free the copy.
848 (xlw_create_menubar): Likewise.
849
8501994-02-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
851
852 * xlwmenu.c (XlwMenuInitialize): Copy mw->menu.contents.
853 (XlwMenuDestroy): Free mw->menu.contents.
854
8551994-02-09 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu)
856
857 * xlwmenu.c (display_menu_item): Call draw_shadow_rectangle to make
858 visible/invisible the selection of the menubar items.
859
8601994-02-08 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
861
862 * lwlib.c (strcasecmp): Renamed to my_strcasecmp.
863 (find_in_table): Changed only caller.
864
8651994-02-04 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu)
866
867 * xlwmenu.c (display_menu_item): When dealing with the menubar,
868 always call XDrawRectangle to clear the selection after popping down
869 the pulldown menu.
870
8711994-02-01 Richard Stallman (rms@mole.gnu.ai.mit.edu)
872
873 * lwlib.c: Include ctype.h.
874
8751994-01-31 Richard Stallman (rms@mole.gnu.ai.mit.edu)
876
877 * lwlib.c (strcasecmp): New function.
878
8791994-01-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
880
881 * xlwmenu.c, lwlib.c, lwlib-Xlw.c, lwlib-utils.c:
882 Convert all function definitions to non-prototype K&R.
883
884 * lwlib-Xlw.h: Comment out args in function decls.
885 * lwlib.h: Comment out args in function decls.
886 * lwlib-utils.h: Comment out args in function decls.
887
8881994-01-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
889
890 * lwlib.c: Include StringDefs.h after lwlib.h.
891
8921994-01-22 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
893
894 * Makefile (xrdb-cpp.o, lwlib.o): Use $(srcdir) and file name
895 instead of $*.
896 (dispatch.o, xrdb.o, lwlib-Xm.o): Rules removed; they were
897 superfluous and didn't work when configured outside srcdir. The
898 implicit .c.o rule works fine.
899
9001994-01-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
901
902 * xlwmenu.c (resource_widget_value): Avoid using strdup.
903
9041994-01-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
905
906 * Makefile.in: New file.
907
908 * lwlib-Xolmb.c: Renamed from lwlib-Xol-mb.c.
909 * lwlib-Xolmb.h: Renamed from lwlib-Xol-mb.h.
910 * lwlib-XolmbP.h: Renamed from lwlib-Xol-mbP.h.
911
912 * lwlib-int.h: Renamed from lwlib-internal.h.
913
914
915
6922b018
KH
916;; Local Variables:
917;; coding: iso-2022-7bit-unix
918;; End: