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