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