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