Commit | Line | Data |
---|---|---|
52b8dbf9 GM |
1 | 2000-01-17 Gerd Moellmann <gerd@gnu.org> |
2 | ||
3 | * lwlib-Xm.c (xm_arm_callback): New function. | |
4 | (make_menu_in_widget): Set xm_arm_callback as XmNarmCallback and | |
5 | XmNdisarmCallback for buttons (not supported for other widgets). | |
d36100c9 | 6 | (make_menubar): Set XmNresizeHeight and XmNresizeWidth to False. |
52b8dbf9 GM |
7 | |
8 | * lwlib-Xlw.c (highlight_hook): New function. | |
9 | (xlw_create_menubar, xlw_create_popup_menu): Add highlight_hook as | |
10 | callback XtNhighlightCallback. | |
11 | ||
12 | * lwlib.c (copy_widget_value_tree): Copy help string. | |
13 | (free_widget_value_tree): Free help string. | |
14 | (merge_widget_value): Handle help string. | |
15 | (allocate_widget_info, lw_register_widget, lw_create_widget): Add | |
16 | parameter HIGHLIGHT_CB. | |
17 | (lw_get_widget_instance): New function. | |
18 | ||
19 | * lwlib-int.h: Add prototype for lw_get_widget_instance. | |
20 | ||
21 | * lwlib.h (_widget_value): Add help string. | |
22 | ||
23 | * xlwmenu.c (xlwMenuResources): All XtNhighlightCallback. | |
24 | (remap_menubar): Call highlight callback. | |
25 | ||
26 | * xlwmenu.h (XtNhighlightCallback): New define. | |
27 | ||
28 | * xlwmenuP.h (_XlwMenu_part): Add `highlight' callback list. | |
29 | ||
0f0912e6 PE |
30 | 1999-10-19 Paul Eggert <eggert@twinsun.com> |
31 | ||
32 | Add support for large files, plus some locale improvements. | |
33 | ||
34 | * dispatch.c, lwlib-Xaw.c, lwlib-Xlw.c, lwlib-Xm.c, lwlib.c, xlwmenu.c, | |
35 | xrdb-cpp.c, xrdb.c: | |
36 | Include <config.h> before any system include files. | |
37 | ||
38 | * lwlib-Xm.c, lwlib.c: | |
39 | Do not include <stdlib.h> or <string.h>, as <config.h> does this. | |
40 | ||
f5737ad2 GM |
41 | 1999-10-07 Gerd Moellmann <gerd@gnu.org> |
42 | ||
43 | * lwlib-Xm.c (make_menu_in_widget, update_one_menu_entry): Use | |
44 | widgets instead of gadgets to be able to set colors. | |
45 | ||
387581d8 DL |
46 | 1999-09-17 Richard Stallman <rms@gnu.org> |
47 | ||
48 | * lwlib-Xaw.c (wm_delete_window): Check all the shell's children, | |
49 | not just the first, to find the dialog box. | |
50 | ||
51 | 1999-09-14 Gerd Moellmann <gerd@gnu.org> | |
52 | ||
53 | * lwlib.c (lw_separator_p): Check for new-style separators | |
54 | differently. | |
55 | ||
56 | 1999-09-10 Gerd Moellmann <gerd@gnu.org> | |
57 | ||
58 | * lwlib.c (lw_separator_p): Add `--:space' with the same | |
59 | meaning as `--:noLine'. | |
60 | ||
61 | 1999-09-06 Gerd Moellmann <gerd@gnu.org> | |
62 | ||
63 | * lwlib.c (lw_separator_p): Add alternative separator type names. | |
64 | ||
65 | 1999-09-03 Gerd Moellmann <gerd@gnu.org> | |
66 | ||
67 | * xlwmenu.c (make_shadow_gcs): Call | |
68 | x_alloc_nearest_color_for_widget. | |
69 | ||
32660797 GM |
70 | 1999-07-12 Gerd Moellmann <gerd@gnu.org> |
71 | ||
72 | * lwlib-Xm.c: Add function prototypes. | |
73 | ||
74 | * lwlib-Xm.c (xm_update_label): Use val->name to look up | |
75 | a label string from resources. | |
76 | (xm_update_label): Add some comments. | |
77 | ||
78 | 1999-07-12 Gerd Moellmann <gerd@gnu.org> | |
79 | ||
80 | * xlwmenu.c (all_dashes_p): Removed. | |
81 | (size_menu_item): Call lw_separator_p. | |
82 | (display_menu_item): Ditto. | |
83 | (display_menu): Ditto. | |
84 | (draw_separator): New. | |
85 | (display_menu_item): Call it. | |
86 | (separator_height): New. | |
87 | (size_menu_item): Call it. | |
88 | ||
89 | * lwlib-Xm.c (all_dashes_p): Removed. | |
90 | (make_menu_in_widget): Use lw_separator_p. Set Motif separator | |
91 | type. | |
92 | ||
93 | * lwlib.c (lw_separator_p): New. | |
94 | ||
95 | * lwlib.h (enum menu_separator): New. | |
96 | ||
97 | 1999-07-12 Gerd Moellmann <gerd@gnu.org> | |
98 | ||
99 | * lwlib-Xm.c (make_menu_in_widget): Set alignment of menu | |
100 | title after all widgets have been created. | |
101 | ||
102 | 1999-07-12 Gerd Moellmann <gerd@gnu.org> | |
103 | ||
104 | * xlwmenu.c (toggle_button_width): Renamed from | |
105 | toggle_or_radio_button_width. | |
106 | (radio_button_width): New. | |
107 | (size_menu_item): Use new functions. | |
108 | (draw_shadow_rhombus): New. | |
109 | (draw_radio): Use radio_button_width and draw_shadow_rhombus. | |
110 | (draw_toggle): Use toggle_button_width. | |
111 | ||
112 | 1999-07-12 Gerd Moellmann <gerd@gnu.org> | |
113 | ||
114 | * lwlib-Xm.c (xm_update_toggle): Add callback xm_generic_callback | |
115 | instead of xm_internal_update_other_instances. | |
116 | ||
117 | * lwlib-Xm.c (make_menu_in_widget): Do help button before managing | |
118 | children to get it to the right place. | |
119 | (make_menu_in_widget): Create toggle buttons. | |
120 | (update_one_menu_entry): Update toggle buttons. | |
121 | ||
122 | * xlwmenu.c (size_menu_item): Add parameter button_width. | |
123 | (size_menu): Compute button_width. | |
124 | (toggle_or_radio_button_width): New. | |
125 | (draw_toggle): New. | |
126 | (draw_radio): New. | |
127 | (draw_shadow_rectangle): Add parameter `down_p'. | |
128 | ||
129 | * xlwmenuP.h (_window_state): Add button_width. | |
130 | ||
131 | 1999-07-12 Gerd Moellmann <gerd@gnu.org> | |
132 | ||
133 | * xlwmenu.c (make_shadow_gcs) ]emacs]: Use x_alloc_nearest_color. | |
134 | ||
135 | * lwlib.c (merge_widget_value): Handle button_type. | |
136 | (copy_widget_value_tree): Copy button_type. | |
137 | ||
138 | * lwlib.h (enum button_type): New. | |
139 | (_widget_value): New member button_type. | |
140 | ||
141 | 1999-07-12 Gerd Moellmann <gerd@gnu.org> | |
142 | ||
143 | * lwlib-Xm.c (make_menu_in_widget): Test for menubar widgets | |
144 | using XmNrowColumnType. | |
145 | ||
146 | 1999-07-12 Gerd Moellmann <gerd@gnu.org> | |
147 | ||
148 | * xlwmenu.c (abort_gracefully): New. | |
149 | (display_menu): Use it instead of abort. | |
150 | (size_menu): Ditto. | |
151 | ||
152 | 1999-07-12 Gerd Moellmann <gerd@gnu.org> | |
153 | ||
154 | * xlwmenu.c (xlwMenuResources): Change previously unused | |
155 | XtNmargin to 4. | |
156 | (size_menu): Take margin into account. | |
157 | (display_menu_item): Ditto. | |
158 | (remap_menubar): Ditto. | |
159 | (draw_arrow): Draw it 3D. | |
160 | ||
a08cb76c DL |
161 | 1999-07-12 Richard Stallman <rms@gnu.org> |
162 | ||
163 | * Version 20.4 released. | |
164 | ||
165 | 1998-08-19 Richard Stallman <rms@psilocin.ai.mit.edu> | |
166 | ||
167 | * Version 20.3 released. | |
168 | ||
169 | 1998-07-30 Paul Eggert <eggert@twinsun.com> | |
170 | ||
171 | * lwlib/Makefile.in (lwlib-utils.o, lwlib.o, lwlib-Xlw.o) | |
172 | (lwlib-Xaw.o, lwlib-Xm.o, lwlib-Xol.o, lwlib-Xolmb.o): | |
173 | Add dependencies to corresponding .c files. for Solaris 2.x VPATH make. | |
174 | ||
175 | 1998-04-06 Andreas Schwab <schwab@gnu.org> | |
176 | ||
177 | * lwlib.c: Always declare xmalloc. | |
178 | [USE_XAW]: Include <X11/Xaw/Paned.h>. | |
179 | (lwlib_memset, lwlib_bcopy): Explicitly declare return type. | |
180 | ||
181 | 1997-12-20 Richard Stallman <rms@delysid.gnu.org> | |
182 | ||
183 | * lwlib-Xm.c (update_one_menu_entry): | |
184 | Add conditional in case XmNpositionIndex is missing. | |
185 | ||
186 | 1997-12-20 Richard Stallman <rms@psilocin.gnu.org> | |
187 | ||
188 | * lwlib-Xm.c (update_one_menu_entry): | |
189 | Add conditional in case XmNpositionIndex is missing. | |
190 | ||
191 | 1997-09-19 Richard Stallman <rms@psilocin.gnu.ai.mit.edu> | |
192 | ||
193 | * Version 20.2 released. | |
194 | ||
195 | * xlwmenu.c (motion_event_is_in_menu): Extend the left and | |
196 | top windows by the shadow width. | |
197 | ||
198 | 1997-09-15 Richard Stallman <rms@psilocin.gnu.ai.mit.edu> | |
199 | ||
200 | * Version 20.1 released. | |
201 | ||
202 | 1997-07-23 Richard Stallman <rms@psilocin.gnu.ai.mit.edu> | |
203 | ||
204 | * xlwmenu.c (display_menu): If an item is disabled, | |
205 | don't display its submenu (if any). | |
206 | ||
207 | 1997-05-01 Richard Stallman <rms@psilocin.gnu.ai.mit.edu> | |
208 | ||
209 | * xlwmenu.c (pop_up_menu): Update the call to x_catch_errors. | |
210 | ||
211 | 1997-01-21 Richard Stallman <rms@psilocin.gnu.ai.mit.edu> | |
212 | ||
213 | * xlwmenu.c (fit_to_screen): If new menu would overlap the previous | |
214 | one from the side, try moving it up or down. | |
215 | ||
216 | 1996-08-11 Richard Stallman <rms@psilocin.gnu.ai.mit.edu> | |
217 | ||
218 | * Version 19.33 released. | |
219 | ||
220 | * lwlib-Xm.c (update_one_menu_entry): Fix previous change: | |
221 | When XmIsCascadeButton, don't call XmCreateCascadeButtonGadget, | |
222 | just modify the existing one. | |
223 | ||
224 | 1996-08-09 Marcus Daniels <marcus@sayre.sysc.pdx.edu> | |
225 | ||
226 | * lwlib.c (merge_widget_value): Undo previous change. | |
227 | ||
228 | * lwlib-Xm.c (update_one_menu_entry): When creating a pulldown | |
229 | in an existing but empty menu item, in order to get a new functional | |
230 | pulldown, the menu item must be switched from an XmPushButtonGadget | |
231 | into a XmCascadeButtonGadget. | |
232 | ||
233 | 1996-07-31 Richard Stallman <rms@psilocin.gnu.ai.mit.edu> | |
234 | ||
235 | * Version 19.32 released. | |
236 | ||
237 | 1996-07-31 Marcus Daniels <marcus@sayre.sysc.pdx.edu> | |
238 | ||
239 | * lwlib-Xm.c (make_menubar): Turn off menu accelerator. | |
240 | ||
241 | 1996-07-24 Marcus Daniels <marcus@sayre.sysc.pdx.edu> | |
242 | ||
243 | * lwlib.c (merge_widget_value) [USE_MOTIF]: Pass along the change | |
244 | flag from merged_contents. | |
245 | ||
246 | 1996-07-13 Karl Heuer <kwzh@gnu.ai.mit.edu> | |
247 | ||
248 | * lwlib-Xm.c (xm_update_menu): Fix loop termination test. | |
249 | ||
250 | 1996-07-07 Karl Heuer <kwzh@gnu.ai.mit.edu> | |
251 | ||
252 | * lwlib-Xm.h, lwlib-Xm.c, lwlib.h, lwlib.c: Undo previous change. | |
253 | ||
254 | 1996-07-03 Marcus Daniels <marcus@sayre.sysc.pdx.edu> | |
255 | ||
256 | * lwlib-Xm.h: Declare lw_motif_menu_related_event_p. | |
257 | ||
258 | * lwlib-Xm.c (lw_motif_menu_related_event_p): A predicate to | |
259 | identify keyboard events intended only for menus. | |
260 | ||
261 | * lwlib.h: Declare lw_toolkit_related_event_p. | |
262 | ||
263 | * lwlib.c (lw_toolkit_related_event_p): A predicate to identify | |
264 | toolkit-specific events. | |
265 | ||
266 | 1996-06-07 Marcus Daniels <marcus@sayre.sysc.pdx.edu> | |
267 | ||
268 | * lwlib-Xm.c (make_menu_in_widget): Set mapping delay | |
269 | for cascade buttons to zero. | |
270 | ||
271 | 1996-05-25 Karl Heuer <kwzh@gnu.ai.mit.edu> | |
272 | ||
273 | * Version 19.31 released. | |
274 | ||
275 | 1996-03-31 Richard Stallman <rms@mole.gnu.ai.mit.edu> | |
276 | ||
277 | * lwlib-Xm.c (destroy_all_children): When freeing a cascade button, | |
278 | free its submenu too. | |
279 | (make_menu_in_widget): Use a cascade button gadget, not a widget. | |
280 | Include Xm/CascadeBG.h. | |
281 | ||
282 | 1996-03-29 Richard Stallman <rms@mole.gnu.ai.mit.edu> | |
283 | ||
284 | * Makefile.in (tags): New target. | |
285 | ||
286 | 1996-03-28 Richard Stallman <rms@mole.gnu.ai.mit.edu> | |
287 | ||
288 | * Makefile.in (TAGS): Renamed from `tags' and fixed to work. | |
289 | ||
290 | 1996-03-26 Richard Stallman <rms@mole.gnu.ai.mit.edu> | |
291 | ||
292 | * Makefile.in (xlwmenu.o): New explicit target. | |
293 | ||
294 | 1996-03-24 Richard Stallman <rms@mole.gnu.ai.mit.edu> | |
295 | ||
296 | * lwlib.h (struct widget_value): New field this_one_change. | |
297 | * lwlib.c (merge_widget_value): Set the this_one_change field. | |
298 | * lwlib-Xm.c (destroy_all_children): New arg first_child_to_destroy. | |
299 | (make_menu_in_widget): New arg keep_first_children. | |
300 | (xm_update_menu): Preserve the first children even if later ones | |
301 | have a structural change. | |
302 | (update_one_menu_entry): Use this_one_change field. | |
303 | ||
304 | 1996-03-01 Richard Stallman <rms@mole.gnu.ai.mit.edu> | |
305 | ||
306 | * xlwmenu.c (motion_event_is_in_menu): Make x and y signed. | |
307 | ||
308 | 1996-02-25 Richard Stallman <rms@mole.gnu.ai.mit.edu> | |
309 | ||
310 | * lwlib.c (lw_window_is_in_menubar) [USE_MOTIF]: | |
311 | With Motif, the window WIN can be the menu bar widget itself. | |
312 | ||
313 | 1996-02-21 Richard Stallman <rms@whiz-bang.gnu.ai.mit.edu> | |
314 | ||
315 | * lwlib.c (free_widget_value_tree, merge_widget_value): | |
316 | Use XtFree for the toolkit_data. | |
317 | ||
318 | 1996-02-19 Karl Heuer <kwzh@gnu.ai.mit.edu> | |
319 | ||
320 | * lwlib.c (lw_internal_update_other_instances): Move static var | |
321 | outside the function, and rename it to lwlib_updating. | |
322 | ||
323 | 1996-01-04 Paul Eggert <eggert@twinsun.com> | |
324 | ||
325 | * lwlib.c (instantiate_widget_instance): Renamed from | |
326 | instanciate_widget_instance (spelling correction). | |
327 | All callers changed. | |
328 | ||
329 | 1995-12-31 Richard Stallman <rms@mole.gnu.ai.mit.edu> | |
330 | ||
331 | * xlwmenu.c (xlwMenuActionsList): Add "key" and "nothing". | |
332 | (xlwMenuTranslations): Add translations for Key, KeyUp, | |
333 | and for the modifier keysyms. | |
334 | (Nothing, Key): New functions. | |
335 | ||
336 | 1995-12-24 Richard Stallman <rms@mole.gnu.ai.mit.edu> | |
337 | ||
338 | * xlwmenu.c (XlwMenuSetValues): Do redisplay if non-null contents | |
339 | get replaced by empty contents. | |
340 | ||
341 | * lwlib.c (merge_widget_value): Treat disappearance of entire contents | |
342 | as a STRUCTURAL_CHANGE. | |
343 | ||
344 | 1995-12-20 Richard Stallman <rms@whiz-bang.gnu.ai.mit.edu> | |
345 | ||
346 | * lwlib-utils.c: Add #undef for index and rindex. | |
347 | ||
348 | 1995-11-24 Richard Stallman <rms@mole.gnu.ai.mit.edu> | |
349 | ||
350 | * Version 19.30 released. | |
351 | ||
352 | 1995-11-13 Richard Stallman <rms@mole.gnu.ai.mit.edu> | |
353 | ||
354 | * xlwmenu.c (display_menu_item): Fix previous change. | |
355 | ||
356 | 1995-11-04 Richard Stallman <rms@whiz-bang.gnu.ai.mit.edu> | |
357 | ||
358 | * xlwmenu.c (display_menu_item): Don't treat buttons specially. | |
359 | ||
360 | 1995-08-14 Richard Stallman <rms@mole.gnu.ai.mit.edu> | |
361 | ||
362 | * Makefile.in (RANLIB): Get this var from configure. | |
363 | ||
364 | 1995-08-02 Richard Stallman <rms@mole.gnu.ai.mit.edu> | |
365 | ||
366 | * lwlib.c (lw_popup_menu): New arg `event', passed along. | |
367 | * lwlib-Xlw.c (xlw_popup_menu): New arg `event'. | |
368 | * lwlib-Xm.c (xm_popup_menu): New arg `event'. | |
369 | ||
370 | 1995-06-19 Richard Stallman <rms@mole.gnu.ai.mit.edu> | |
371 | ||
372 | * Version 19.29 released. | |
373 | ||
374 | 1995-06-11 Richard Stallman <rms@gnu.ai.mit.edu> | |
375 | ||
376 | * lwlib.c (lwlib_toolkit_type): New variable. | |
377 | ||
378 | 1995-05-26 Richard Stallman <rms@gnu.ai.mit.edu> | |
379 | ||
380 | * xlwmenu.c (Drag): Do nothing unless menu.popped_up field is set. | |
381 | ||
382 | 1995-05-22 Karl Heuer <kwzh@hal.gnu.ai.mit.edu> | |
383 | ||
384 | * xlwmenu.c (XlwMenuInitialize): Cast XCreatePixmapFromBitmapData args. | |
385 | ||
386 | 1995-05-20 Karl Heuer <kwzh@nutrimat.gnu.ai.mit.edu> | |
387 | ||
388 | * lwlib.c: Don't use prototype. | |
389 | * lwlib-Xm.c (activate_button, xm_update_cascadebutton): Likewise. | |
390 | ||
391 | 1995-05-05 Richard Stallman <rms@mole.gnu.ai.mit.edu> | |
392 | ||
393 | * lwlib.c (lw_refigure_widget) [USE_MOTIF]: Fix backward if. | |
394 | ||
395 | 1995-05-04 Richard Stallman <rms@mole.gnu.ai.mit.edu> | |
396 | ||
397 | * Makefile.in (ALL_CFLAGS): Add -I../src. | |
398 | ||
399 | 1995-05-03 Morten Welinder <terra+@cs.cmu.edu> | |
400 | ||
401 | * lwlib.c [__osf__]: Include string.h and stdlib.h. | |
402 | [__osf__] (xmalloc): Declared. | |
403 | ||
404 | 1995-04-13 Richard Stallman <rms@mole.gnu.ai.mit.edu> | |
405 | ||
406 | * lwlib-Xm.c (update_one_menu_entry, make_menu_in_widget): | |
407 | Specify more useful names in XmCreatePulldownMenu calls. | |
408 | ||
409 | * lwlib-Xaw.c (xaw_pop_instance): Make x, y, w, h unsigned. | |
410 | ||
411 | * xlwmenu.c (size_menu): Make height and label_width unsigned. | |
412 | (fit_to_screen): Make screen_width and screen_height unsigned. | |
413 | (motion_event_is_in_menu): Make x, y unsigned. | |
414 | ||
415 | 1995-04-09 Richard Stallman <rms@mole.gnu.ai.mit.edu> | |
416 | ||
417 | * lwlib-utils.c: If HAVE_CONFIG_H, include config.h. | |
418 | ||
419 | * Makefile.in (ALL_CFLAGS): Define HAVE_CONFIG_H. | |
420 | Add -I${srcdir}/../src. | |
421 | ||
422 | 1995-04-08 Paul Reilly <pmr@geech.gnu.ai.mit.edu> | |
423 | ||
424 | * lwlib-Xm.c: Remove function prototypes. | |
425 | (xm_pop_down_callback): Call the deactivation callback only when | |
426 | popping down the top level submenu. | |
427 | ||
428 | 1995-04-07 Richard Stallman <rms@mole.gnu.ai.mit.edu> | |
429 | ||
430 | * Makefile.in (lwlib.o): Depend on Makefile. | |
431 | ||
432 | * lwlib-Xm.h: Remove function prototypes. | |
433 | ||
434 | * lwlib-Xm.c (remove_grabs): Use type Widget for `menu'. | |
435 | ||
436 | 1995-02-15 Paul Reilly <pmr@geech.gnu.ai.mit.edu> | |
437 | ||
438 | * Makefile.in (ALL_CFLAGS): Allow include files to be found in | |
439 | `srcdir'. | |
440 | ||
441 | 1995-02-07 Richard Stallman <rms@pogo.gnu.ai.mit.edu> | |
442 | ||
443 | * Makefile.in (maintainer-clean): Renamed from realclean. | |
444 | ||
445 | 1994-11-28 Richard Stallman <rms@bethel> | |
446 | ||
447 | * lwlib-int.h (safe_strdup): Don't use ANSI argument prototype. | |
448 | ||
449 | 1994-11-15 Paul Reilly <pmr@duality.gnu.ai.mit.edu> | |
450 | ||
451 | * lwlib.c (lw_refigure_widget): Use the macro USE_XAW rather than XAW. | |
452 | ||
453 | 1994-11-08 Paul Reilly <pmr@duality.gnu.ai.mit.edu> | |
454 | ||
455 | * lwlib-Xm.c (make_menu_in_widget): Differentiate a separator | |
456 | entry ("--") from a title. | |
457 | (xm_pop_down_callback): Filter all but the last pop down callbacks. | |
458 | ||
459 | 1994-11-07 Paul Reilly <pmr@duality.gnu.ai.mit.edu> | |
460 | ||
461 | * lwlib-Xm.c (update_one_menu_entry): Use the parent of the | |
462 | cascade button as the parent of the pulldown, rather than the | |
463 | cascade button itself. This works around a Motif SIGSEGV in the | |
464 | function `InSharedMenuHierarchy'. | |
465 | ||
466 | 1994-10-29 Richard Stallman <rms@duality.gnu.ai.mit.edu> | |
467 | ||
468 | * xlwmenu.c (xlwmenu_default_font): New global variable. | |
469 | (XlwMenuInitialize): Use xlwmenu_default_font to default | |
470 | the font if necessary. Make mw, itself, an argument. | |
471 | ||
472 | 1994-10-26 Richard Stallman <rms@duality.gnu.ai.mit.edu> | |
473 | ||
474 | * xlwmenu.c (pop_up_menu): Pass a Display * to x_catch_errors, etc. | |
475 | ||
476 | 1994-10-26 Richard Stallman <rms@mole.gnu.ai.mit.edu> | |
477 | ||
478 | * xlwmenu.c (xlwmenu_default_font): New global variable. | |
479 | (XlwMenuInitialize): Use xlwmenu_default_font to default | |
480 | the font if necessary. Make mw, itself, an argument. | |
481 | ||
482 | * xlwmenu.c (pop_up_menu): Pass a Display * to x_catch_errors, etc. | |
483 | ||
484 | 1994-10-08 Richard Stallman <rms@mole.gnu.ai.mit.edu> | |
485 | ||
486 | * xlwmenu.c (fit_to_screen): Don't put the menu off the left or top. | |
487 | ||
488 | 1994-10-02 Paul Reilly <pmr@geech.gnu.ai.mit.edu> | |
489 | ||
490 | * xlwmenu.c (display_menu_item): Add support for displaying the | |
491 | title in pop up menus. | |
492 | ||
493 | * lwlib.c (lw_set_main_areas): Use xm_set_main_areas(). | |
494 | (lw_manage_resizing): Use xm_manage_resizing() for Emacs/Motif. | |
495 | ||
496 | 1994-09-25 Paul Reilly <pmr@geech.gnu.ai.mit.edu> | |
497 | ||
498 | * lwlib-Xaw.c (xaw_create_main): New function to support the | |
499 | toolkit independent creation of the main Emacs widget. * | |
500 | lwlib-Xlw.c (xlw_create_menubar): When compiling under Emacs, set | |
501 | resizing resources to disable showGrip and to enable both | |
502 | resizeToPreferred and allowShellResize. | |
503 | ||
504 | * lwlib-Xm.h: Declare xm_set_main_areas, xm_manage_resizing. | |
505 | ||
506 | * lwlib-Xm.c: (make_menu_in_widget): Add support for displaying a | |
507 | title in pop up menus. | |
508 | (make_main, xm_set_main_areas, xm_manage_resizing): New functions to | |
509 | create and manage a Motif Main Window widget. | |
510 | ||
511 | * xlwmenu.c: Add #include <X11/ObjectP.h> for X11R4. | |
512 | ||
513 | 1994-09-18 Fred Pierresteguy <F.Pierresteguy@frcl.bull.fr> | |
514 | ||
515 | * lwlib-Xm.c (make_dialog): When there is more than two pushbuttons, | |
516 | set XmPACK_TIGHT and XmHORIZONTAL to the rowcolumn. Also add a | |
517 | margin of 10 pixels. | |
518 | ||
519 | 1994-09-16 Paul Reilly <pmr@geech.gnu.ai.mit.edu> | |
520 | ||
521 | * lwlib-Xm.c (make_main): New function to support toolkit | |
522 | independent creation of the main Emacs widget. | |
523 | (make_destroyed_instance): Use safe_strdup() instead of strdup(). | |
524 | ||
525 | * lwlib-int.h: Declare safe_strdup. | |
526 | ||
527 | * lwlib.c (lw_refigure_widget): New function. Handle geometry | |
528 | management inside lwlib instead of in Emacs. | |
529 | (lw_window_is_in_menubar): New function. Determine if the pointer | |
530 | is in a menubar. | |
531 | (lw_set_main_areas): New function. Set the main window widgets for | |
532 | Motif. | |
533 | ||
534 | * lwlib.h: Declare lw_refigure_widget(), lw_window_is_in_menubar(), | |
535 | lw_set_main_areas(). | |
536 | ||
537 | * xlwmenu.h: Define Xt{Ns,CS}howGrip, Xt{Nr,CR}esizeToPreferred, and | |
538 | Xt{Na,CA}llowResize. | |
539 | ||
540 | * xlwmenu.c (Start): Use pop_up_menu() to post the submenus. | |
541 | (Select): Remove the pointer grab when popping down a menubar | |
542 | submenu. | |
543 | (pop_up_menu): Handle popping up submenus from a menubar, i.e. when | |
544 | the menu widget parent is not a shell widget. | |
545 | ||
546 | 1994-08-25 Richard Stallman <rms@mole.gnu.ai.mit.edu> | |
547 | ||
548 | * xlwmenu.c (pop_up_menu): Clear next_release_must_exit. | |
549 | (Start): Clear next_release_must_exit when popping up the menu. | |
550 | ||
551 | 1994-08-24 Richard Stallman <rms@mole.gnu.ai.mit.edu> | |
552 | ||
553 | * xlwmenu.c (Start): Set menu_post_event or next_release_must_exit. | |
554 | (Select): Do nothing if the menu should be left posted. | |
555 | ||
556 | 1994-07-28 Richard Stallman <rms@mole.gnu.ai.mit.edu> | |
557 | ||
558 | * xlwmenu.c (make_windows_if_needed, pop_up_menu): | |
559 | Enable mouse motion events even when no button down. | |
560 | ||
561 | 1994-07-11 Richard Stallman (rms@mole.gnu.ai.mit.edu) | |
562 | ||
563 | * xlwmenu.c (pointer_grabbed): New variable. | |
564 | (pop_up_menu): Set the variable. | |
565 | (XlwMenuDestroy): Maybe call XtUngrabPointer. | |
566 | ||
567 | 1994-05-25 Richard Stallman (rms@mole.gnu.ai.mit.edu) | |
568 | ||
569 | * lwlib.c (max): Function deleted. Define as macro instead, | |
570 | but only if not already defined. | |
571 | ||
572 | 1994-05-20 Richard Stallman (rms@mole.gnu.ai.mit.edu) | |
573 | ||
574 | * xlwmenu.c (xlwMenuResources): Use XtRDimension for shadow thickness. | |
575 | ||
576 | 1994-05-19 Richard Stallman (rms@mole.gnu.ai.mit.edu) | |
577 | ||
578 | * lwlib-Xaw.c (xaw_pop_instance): Use XtSetValues, not XtMoveWidget. | |
579 | ||
580 | 1994-05-16 Richard Stallman (rms@mole.gnu.ai.mit.edu) | |
581 | ||
582 | * lwlib.c (lwlib_memset: New function, used instead of memset. | |
583 | All callers changed. | |
584 | * lwlib.c (lwlib_bcopy): New function. | |
585 | * lwlib-utils.c (XtApplyToWidgets): Use lwlib_bcopy. | |
586 | ||
587 | * lwlib.c: Delete definitions for use of alloca. | |
588 | (name_to_widget): Use xmalloc, not alloca. | |
589 | ||
590 | 1994-05-12 Richard Stallman (rms@mole.gnu.ai.mit.edu) | |
591 | ||
592 | * xlwmenu.c (XlwMenuDestroy): Set new var submenu_destroyed. | |
593 | (XlwMenuRedisplay): If it's set, truncate the old_depth to 1. | |
594 | ||
595 | 1994-05-09 Richard Stallman (rms@mole.gnu.ai.mit.edu) | |
596 | ||
597 | * xrdb-cpp.c: Don't include string.h, unistd.h, stdlib.h. | |
598 | * lwlib-Xaw.c: Don't include string.h, unistd.h, stdlib.h. | |
599 | * lwlib-utils.c (XtApplyToWidgets): Use bcopy, not memcpy. | |
600 | * lwlib-utils.c: Don't include string.h, unistd.h, stdlib.h, memory.h. | |
601 | * xlwmenu.c: Don't include string.h, unistd.h, stdlib.h. | |
602 | * lwlib.c: Don't include string.h, unistd.h, stdlib.h. | |
603 | (safe_strdup): No longer static. | |
604 | * lwlib-Xm.c: Use safe_strdup, not strdup. | |
605 | ||
606 | * xlwmenu.c (string_width): No longer static. | |
607 | ||
608 | 1994-05-06 Richard Stallman (rms@mole.gnu.ai.mit.edu) | |
609 | ||
610 | * xlwmenuP.h (struct _XlwMenu_part): Use Pixel and Cursor | |
611 | for foreground and cursor_shape fields. | |
612 | ||
613 | * xlwmenu.c (XlwMenuSetValues): Check for change of font. | |
614 | ||
615 | 1994-04-28 Richard Stallman (rms@mole.gnu.ai.mit.edu) | |
616 | ||
617 | * Makefile.in: Delete all SRCS variables (unused). | |
618 | (lwlib.o, xrdb-cpp.o): Mention srcdir in dep. | |
619 | ||
620 | 1994-04-15 Richard Stallman (rms@mole.gnu.ai.mit.edu) | |
621 | ||
622 | * Makefile.in (ALL_CFLAGS): Don't define THIS_IS_X11R4. | |
623 | ||
624 | * xrdb.c: Define HAVE_X11R5 as in xterm.h. | |
625 | Include X11/Xlib.h, X11/cursorfont.h and X11/Xutil.h. | |
626 | (_XtDisplayInitialize): Test HAVE_X11R5. | |
627 | ||
628 | * dispatch.c: Define HAVE_X11R5 as in xterm.h. | |
629 | Include X11/Xlib.h, X11/cursorfont.h and X11/Xutil.h. | |
630 | (_XtConvertTypeToMask): Conditionalize on HAVE_X11R5. | |
631 | (WouldDispatchEvent): Likewise. | |
632 | ||
633 | 1994-04-12 Richard Stallman (rms@mole.gnu.ai.mit.edu) | |
634 | ||
635 | * lwlib-Xaw.c (xaw_generic_callback): Declare without arg names. | |
636 | ||
637 | 1994-04-01 Frederic Pierresteguy (fp@hal.gnu.ai.mit.edu) | |
638 | ||
639 | * lwlib-Xaw.c (make_dialog): Don't allow any geometry request from the | |
640 | user. | |
641 | ||
642 | 1994-03-22 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu) | |
643 | ||
644 | * xlwmenu.c (XlwMenuResize): Don't allow the popup menu to resize | |
645 | itself. Therefore reset the size to its initial value. | |
646 | ||
647 | 1994-03-19 Richard Stallman (rms@mole.gnu.ai.mit.edu) | |
648 | ||
649 | * lwlib-Xaw.c (xaw_update_one_widget): Finish replacing XtVaSetValues. | |
650 | Don't test for scrollbar widget. | |
651 | ||
652 | 1994-03-14 Frederic Pierresteguy (fp@gnu.ai.mit.edu) | |
653 | ||
654 | * lwlib-int.h: Declare lw_get_widget_info. | |
655 | ||
656 | * lwlib.c (lw_get_widget_info): Comment out arg in function decl. | |
657 | ||
658 | * lwlib-Xaw.h: Comment out args in function decls. | |
659 | * lwlib-Xaw.c: Convert all function definitions to non-prototype K&R. | |
660 | (xaw_update_one_widget - case dialogWidgetClass): Call XtSetValues, | |
661 | not XtVaSetValues. | |
662 | ||
663 | 1994-03-11 Frederic Pierresteguy (F.Pierresteguy@frcl.bull.fr) | |
664 | ||
665 | * xlwmenu.c (display_menu_item): Modify parameters to draw_arrow to | |
666 | right justify the arrow in the pane. | |
667 | ||
668 | * lwlib.c: If not defined USE_MOTIF and defined USE_LUCID then | |
669 | define USE_XAW. | |
670 | ||
671 | * Makefile.in (LUCID_SRCS, LUCID_OBJS): Add the target lwlib-Xaw.[oc]. | |
672 | ||
673 | * lwlib.c, lwlib-int.h: Merged from Lucid 19.9 release. | |
674 | * lwlib.c (_AIX): Replace the AIXV3 directive. | |
675 | (USE_XAW): New macro to conditionalize the use of the athena toolkit. | |
676 | (lw_get_widget_info): New function. | |
677 | (set_one_value): Handle USE_XAW. | |
678 | (instanciate_widget_instance): Likewise. | |
679 | (destroy_one_instance): Likewise. | |
680 | (lw_pop_all_widgets): Likewise. | |
681 | (lw_pop_down_all_widgets): Likewise. | |
682 | (get_one_value): Likewise. | |
683 | ||
684 | * lwlib-Xaw.c, lwlib-Xaw.h: New files. | |
685 | ||
686 | 1994-02-23 Richard Stallman (rms@mole.gnu.ai.mit.edu) | |
687 | ||
688 | * xlwmenu.c (XlwMenuInitialize, XlwMenuDestroy): Undo previous changes. | |
689 | ||
690 | * lwlib-Xlw.c (xlw_create_menubar, xlw_create_popup_menu): | |
691 | Use XtCreate..., not XtVaCreate... | |
692 | No need to copy instance->info->val any more. | |
693 | (xlw_update_one_widget): Use XtSetValues, not XtVaSetValues. | |
694 | ||
695 | 1994-02-21 Richard Stallman (rms@mole.gnu.ai.mit.edu) | |
696 | ||
697 | * xlwmenu.c (pop_up_menu): Call XtUngrabPointer if XtGrabPointer fails. | |
698 | ||
699 | 1994-02-19 Richard Stallman (rms@mole.gnu.ai.mit.edu) | |
700 | ||
701 | * Makefile.in (xrdb-cpp.o, lwlib.o): Put ALL_CFLAGS after other flags. | |
702 | ||
703 | * lwlib-Xlw.c (xlw_create_menubar): Don't call free_widget_value. | |
704 | Use malloc for allocation. | |
705 | (xlw_create_popup_menu): Likewise. | |
706 | ||
707 | 1994-02-18 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu) | |
708 | ||
709 | * lwlib.c (malloc_cpt): New static variable. | |
710 | (malloc_widget_value): Increment malloc_cpt when allocating a cell. | |
711 | (free_widget_value): Really free the cells when the number of | |
712 | allocated ones is bigger than 25. | |
713 | ||
714 | * lwlib-Xlw.c (xlw_create_menubar): Call malloc_widget_value and | |
715 | free_widget_value instead of XtMalloc and XtFree. | |
716 | (xlw_create_popup_menu): Likewise. | |
717 | ||
718 | 1994-02-17 Richard Stallman (rms@mole.gnu.ai.mit.edu) | |
719 | ||
720 | * Makefile.in (ALL_CFLAGS): Specify -Demacs. | |
721 | ||
722 | * xlwmenu.c (pop_up_menu) [emacs]: Catch and ignore X protocol errors | |
723 | in XtGrabPointer. | |
724 | ||
725 | 1994-02-17 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu) | |
726 | ||
727 | * lwlib-Xlw.c (xlw_create_popup_menu): Pass tem to | |
728 | XtVaCreateManagedWidget, not instance->info->val. | |
729 | (xlw_create_menubar): Likewise. | |
730 | ||
731 | 1994-02-15 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu) | |
732 | ||
733 | * lwlib-Xlw.c (xlw_create_popup_menu): Copy instance->info->val | |
734 | before calling XtVaCreateManagedWidget and then free the copy. | |
735 | (xlw_create_menubar): Likewise. | |
736 | ||
737 | 1994-02-11 Richard Stallman (rms@mole.gnu.ai.mit.edu) | |
738 | ||
739 | * xlwmenu.c (XlwMenuInitialize): Copy mw->menu.contents. | |
740 | (XlwMenuDestroy): Free mw->menu.contents. | |
741 | ||
742 | 1994-02-09 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu) | |
743 | ||
744 | * xlwmenu.c (display_menu_item): Call draw_shadow_rectangle to make | |
745 | visible/invisible the selection of the menubar items. | |
746 | ||
747 | 1994-02-08 Roland McGrath (roland@churchy.gnu.ai.mit.edu) | |
748 | ||
749 | * lwlib.c (strcasecmp): Renamed to my_strcasecmp. | |
750 | (find_in_table): Changed only caller. | |
751 | ||
752 | 1994-02-04 Frederic Pierresteguy (fp@mole.gnu.ai.mit.edu) | |
753 | ||
754 | * xlwmenu.c (display_menu_item): When dealing with the menubar, | |
755 | always call XDrawRectangle to clear the selection after popping down | |
756 | the pulldown menu. | |
757 | ||
758 | 1994-02-01 Richard Stallman (rms@mole.gnu.ai.mit.edu) | |
759 | ||
760 | * lwlib.c: Include ctype.h. | |
761 | ||
762 | 1994-01-31 Richard Stallman (rms@mole.gnu.ai.mit.edu) | |
763 | ||
764 | * lwlib.c (strcasecmp): New function. | |
765 | ||
766 | 1994-01-30 Richard Stallman (rms@mole.gnu.ai.mit.edu) | |
767 | ||
768 | * xlwmenu.c, lwlib.c, lwlib-Xlw.c, lwlib-utils.c: | |
769 | Convert all function definitions to non-prototype K&R. | |
770 | ||
771 | * lwlib-Xlw.h: Comment out args in function decls. | |
772 | * lwlib.h: Comment out args in function decls. | |
773 | * lwlib-utils.h: Comment out args in function decls. | |
774 | ||
775 | 1994-01-29 Richard Stallman (rms@mole.gnu.ai.mit.edu) | |
776 | ||
777 | * lwlib.c: Include StringDefs.h after lwlib.h. | |
778 | ||
779 | 1994-01-22 Roland McGrath (roland@churchy.gnu.ai.mit.edu) | |
780 | ||
781 | * Makefile (xrdb-cpp.o, lwlib.o): Use $(srcdir) and file name | |
782 | instead of $*. | |
783 | (dispatch.o, xrdb.o, lwlib-Xm.o): Rules removed; they were | |
784 | superfluous and didn't work when configured outside srcdir. The | |
785 | implicit .c.o rule works fine. | |
786 | ||
787 | 1994-01-21 Richard Stallman (rms@mole.gnu.ai.mit.edu) | |
788 | ||
789 | * xlwmenu.c (resource_widget_value): Avoid using strdup. | |
790 | ||
791 | 1994-01-18 Richard Stallman (rms@mole.gnu.ai.mit.edu) | |
792 | ||
793 | * Makefile.in: New file. | |
794 | ||
795 | * lwlib-Xolmb.c: Renamed from lwlib-Xol-mb.c. | |
796 | * lwlib-Xolmb.h: Renamed from lwlib-Xol-mb.h. | |
797 | * lwlib-XolmbP.h: Renamed from lwlib-Xol-mbP.h. | |
798 | ||
799 | * lwlib-int.h: Renamed from lwlib-internal.h. | |
800 | ||
801 | ||
802 |