Dmitry Antipov
|
c09bfb2f14
|
Miscellaneous fixes for non-default X toolkits.
* configure.ac (MOTIF): Check for /usr/include/openmotif
and /usr/(lib|lib64)/openmotif if --with-x-toolkit=motif.
* lwlib/lwlib-Xm.c (make_menu_in_widget): Remove unused variable.
* src/xfns.c (Fx_file_dialog): Change to SSDATA to avoid warnings.
* src/xterm.c (x_frame_of_widget): Remove redundant prototype.
Move under #ifdef USE_LUCID.
(x_create_toolkit_scroll_bar): Adjust scroll_bar_name
definition and usage to avoid warnings.
|
2012-07-31 15:37:38 +04:00 |
|
Paul Eggert
|
cf38a720e8
|
Clean out last vestiges of the old HAVE_CONFIG_H stuff.
|
2012-06-25 18:05:39 -07:00 |
|
Glenn Morris
|
acaf905b11
|
Add 2012 to FSF copyright years for Emacs files
|
2012-01-05 01:46:05 -08:00 |
|
Dmitry Antipov
|
81d40c9208
|
Use xfree, not free, to avoid crash with --enable-checking=xmallocoverrun.
|
2011-10-13 07:55:46 -07:00 |
|
Paul Eggert
|
5c5e6a401e
|
* lwlib-Xm.c (make_dialog): Rename local to avoid shadowing.
(make_menu_in_widget): Add cast to avoid warning.
|
2011-04-16 14:22:40 -07:00 |
|
Glenn Morris
|
67f02b82f4
|
lwlib/ trivia.
* lwlib-Xaw.c, lwlib-Xlw.c, lwlib-Xm.c, lwlib-utils.c, lwlib.c, xlwmenu.c:
Standardize on <> for includes from the ../src directory.
|
2011-02-09 21:03:29 -08:00 |
|
Jan D
|
3370edca83
|
Use xmalloc instead of malloc.
* lwlib-Xm.c (make_destroyed_instance):
* lwlib-utils.c (XtApplyToWidgets):
* lwlib.c (safe_strdup, malloc_widget_value)
(allocate_widget_info, allocate_widget_instance): Use xmalloc
instead of malloc.
|
2011-01-31 07:44:05 +01:00 |
|
Glenn Morris
|
95df8112a0
|
Refill some long/short copyright headers.
|
2011-01-26 00:36:39 -08:00 |
|
Glenn Morris
|
73b0cd5003
|
Convert consecutive FSF copyright years to ranges.
|
2011-01-24 20:08:28 -08:00 |
|
Glenn Morris
|
06d8ace515
|
Merge from emacs-23.
Note setting of CANNOT_DUMP on ia64 hpux is still to be merged manually.
|
2011-01-24 19:47:47 -08:00 |
|
Werner Meisner
|
fdbd21a482
|
* lwlib-Xm.c (xm_update_menu): Avoid a NULL pointer dereference (Bug#7690).
|
2011-01-23 16:39:37 -05:00 |
|
Glenn Morris
|
0d9f702fd0
|
Nuke arch-tags.
|
2011-01-15 15:16:57 -08:00 |
|
Stefan Monnier
|
77ab81d054
|
Merge from emacs-23
|
2011-01-14 12:18:41 -05:00 |
|
Glenn Morris
|
5df4f04cd3
|
Add 2011 to FSF/AIST copyright years.
|
2011-01-02 15:50:46 -08:00 |
|
Jan D
|
c825c0b647
|
Change function definition from K&R to prototype. Fix prototype warnings.
* lwlib-Xaw.c (xaw_generic_callback, command_reset)
(xaw_update_one_value): Reformat.
(xaw_update_one_widget): Reformat and remove dead code.
(xaw_scrollbar_scroll, xaw_scrollbar_jump, xaw_create_scrollbar)
(xaw_update_scrollbar): Remove (not used).
(make_dialog): Change from K&R to prototype. Remove dead code.
(xaw_creation_table): Remove scrollbar entry.
* lwlib-Xlw.c (x_print_complete_resource_name): Change from K&R to
prototype.
(xlw_update_one_value): Reformat.
* lwlib-Xm.c (x_print_complete_resource_name)
(make_destroyed_instance, free_destroyed_instance, first_child)
(lw_motif_widget_p, resource_motif_string, destroy_all_children)
(xm_arm_callback, xm_update_label, xm_update_list)
(xm_update_pushbutton, xm_update_cascadebutton)
(xm_update_toggle, xm_update_radiobox, make_menu_in_widget)
(update_one_menu_entry, xm_update_menu, xm_update_text)
(xm_update_text_field, xm_update_one_widget)
(xm_update_one_value, activate_button, dialog_key_cb)
(make_dialog, mark_dead_instance_destroyed)
(find_matching_instance, recenter_widget, recycle_instance)
(xm_create_dialog, make_menubar, remove_grabs, make_popup_menu)
(make_main, xm_destroy_instance, xm_popup_menu)
(set_min_dialog_size, xm_pop_instance, do_call)
(xm_internal_update_other_instances, xm_generic_callback)
(xm_nosel_callback, xm_pull_down_callback, xm_pop_down_callback)
(xm_set_keyboard_focus, xm_set_main_areas, xm_manage_resizing): Change
from K&R to prototype.
* lwlib-int.h (widget_creation_function): Fix prototype.
* lwlib.c (allocate_widget_info, lw_register_widget): Change from K&R
to prototype.
(lw_internal_update_other_instances, merge_widget_value): Reformat.
* xlwmenu.c (size_menu_item): Change from K&R to prototype.
Change label_width and height to int.
(draw_arrow, draw_shadow_rectangle, draw_shadow_rhombus)
(draw_separator, display_menu, fit_to_screen, motion_event_is_in_menu)
(map_event_to_widget_value): Reformat.
(display_menu_item): Change from K&R to prototype.
|
2010-07-08 12:29:51 +02:00 |
|
Dan Nicolaescu
|
d8825aa36e
|
Remove alternative K&R declarations.
* lwlib/lwlib.c (allocate_widget_instance, get_widget_info)
(get_widget_instance, find_instance, set_one_value)
(update_one_widget_instance, update_all_widget_values)
(lw_modify_all_widgets, lw_get_widget, lw_make_widget)
(lw_create_widget, lw_pop_all_widgets, lw_show_busy)
(lw_refigure_widget, lw_allow_resizing): Remove alternative K&R
declarations.
* lwlib/lwlib-Xlw.c (xlw_update_one_widget):
(xlw_pop_instance): Likewise.
* lwlib/lwlib-Xaw.c (xaw_update_one_widget, xaw_pop_instance):
Likewise.
* lwlib/lwlib-Xm.c (P_): Remove.
* src/xdisp.c (store_mode_line_noprop_char): Remove K&R alternative declaration.
|
2010-07-07 22:42:59 -07:00 |
|
Jan D
|
f57e2426f0
|
Remove __P and P_ from .c and .m files and definition of P_
* lisp.h:
* atimer.h: Remove define for P_.
* alloc.c: Remove __P and P_ from .c and .m files.
* atimer.c:
* buffer.c:
* callint.c:
* category.c:
* charset.c:
* chartab.c:
* cm.c:
* coding.c:
* composite.c:
* data.c:
* dired.c:
* dispnew.c:
* doc.c:
* editfns.c:
* emacs.c:
* eval.c:
* fileio.c:
* filelock.c:
* fns.c:
* font.c:
* fontset.c:
* frame.c:
* ftfont.c:
* ftxfont.c:
* gmalloc.c:
* gtkutil.c:
* image.c:
* indent.c:
* intervals.c:
* keyboard.c:
* keymap.c:
* lread.c:
* marker.c:
* menu.c:
* minibuf.c:
* print.c:
* process.c:
* scroll.c:
* search.c:
* sound.c:
* strftime.c:
* syntax.c:
* sysdep.c:
* term.c:
* terminal.c:
* textprop.c:
* unexalpha.c:
* w32console.c:
* w32fns.c:
* w32font.c:
* w32menu.c:
* w32term.c:
* w32uniscribe.c:
* window.c:
* xdisp.c:
* xfaces.c:
* xfns.c:
* xfont.c:
* xftfont.c:
* xmenu.c:
* xselect.c:
* xterm.c: Likewise.
* ebrowse.c: Remove P_ and __P.
* etags.c:
* movemail.c:
* pop.c:
* update-game-score.c: Likewise.
|
2010-07-02 14:19:53 +02:00 |
|
Glenn Morris
|
114f9c9679
|
Add 2010 to copyright years.
|
2010-01-13 00:35:10 -08:00 |
|
Dan Nicolaescu
|
d7306fe6b1
|
* alloc.c: Do not define struct catchtag.
* eval.c: Move struct catchtag definition ...
* lisp.h: ... here.
* image.c: Move png.h #include earlier to avoid warnings.
* xterm.c:
* xsmfns.c:
* xselect.c:
* xrdb.c:
* xmenu.c:
* xftfont.c:
* xfont.c:
* xfns.c:
* xfaces.c:
* xdisp.c:
* window.c:
* widget.c:
* w32xfns.c:
* w32uniscribe.c:
* w32term.c:
* w32select.c:
* w32reg.c:
* w32proc.c:
* w32menu.c:
* w32inevt.c:
* w32heap.c:
* w32font.c:
* w32fns.c:
* w32console.c:
* w32.c:
* w16select.c:
* vm-limit.c:
* unexsol.c:
* unexec.c:
* unexcw.c:
* unexaix.c:
* undo.c:
* tparam.c:
* textprop.c:
* terminfo.c:
* terminal.c:
* termcap.c:
* term.c:
* syntax.c:
* sound.c:
* sheap.c:
* search.c:
* scroll.c:
* region-cache.c:
* regex.c:
* ralloc.c:
* process.c:
* print.c:
* msdos.c:
* minibuf.c:
* menu.c:
* marker.c:
* macros.c:
* keymap.c:
* keyboard.c:
* intervals.c:
* insdel.c:
* indent.c:
* gtkutil.c:
* ftxfont.c:
* ftfont.c:
* fringe.c:
* frame.c:
* fontset.c:
* font.c:
* fns.c:
* floatfns.c:
* filelock.c:
* fileio.c:
* emacs.c:
* editfns.c:
* dosfns.c:
* doprnt.c:
* doc.c:
* dispnew.c:
* dired.c:
* dbusbind.c:
* data.c:
* composite.c:
* coding.c:
* cmds.c:
* cm.c:
* chartab.c:
* charset.c:
* character.c:
* ccl.c:
* category.c:
* casetab.c:
* casefiddle.c:
* callproc.c:
* callint.c:
* bytecode.c:
* buffer.c:
* atimer.c: Include setjmp.h. (Bug#4643)
* xlwmenu.c:
* lwlib.c:
* lwlib-utils.c:
* lwlib-Xm.c:
* lwlib-Xlw.c:
* lwlib-Xaw.c: Include setjmp.h.
|
2009-10-19 04:27:09 +00:00 |
|
Glenn Morris
|
f5d0ac07d6
|
Add 2009 to copyright years.
|
2009-01-08 03:38:51 +00:00 |
|
Jim Meyering
|
c2cd06e61e
|
remove useless if-before-free tests
* lib-src/ebrowse.c (xfree): Likewise.
* lib-src/etags.c (process_file_name, free_tree, free_fdesc): Likewise.
(popclass_above, Prolog_functions, Erlang_functions): Likewise.
* lib-src/pop.c (pop_quit): Likewise.
* lwlib/lwlib-Xm.c (xm_update_one_value): Likewise.
* lwlib/lwlib.c (safe_free_str, free_widget_value_tree): Likewise.
* src/editfns.c (Fset_time_zone_rule): Likewise.
* src/lread.c (nosuffix): Likewise.
* src/ralloc.c (get_bloc): Likewise.
* src/regex.c (reg_free): Likewise.
* src/xftfont.c (xftfont_open, xftfont_close): Likewise.
* src/xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
* src/xsmfns.c (smc_save_yourself_CB): Likewise.
|
2008-06-02 06:00:54 +00:00 |
|
Glenn Morris
|
b9b14d130b
|
Add 2008 to copyright years.
|
2008-01-07 08:31:52 +00:00 |
|
Glenn Morris
|
e481899ccb
|
Revert license to the original GPLv1 or later (changed 20050317).
|
2007-02-28 03:52:45 +00:00 |
|
Glenn Morris
|
4e6835dbc4
|
Add 2007 to copyright years.
|
2007-01-21 04:57:37 +00:00 |
|
Thien-Thi Nguyen
|
5b0d63bc36
|
Update years in copyright notice; nfc.
|
2006-02-05 23:44:47 +00:00 |
|
Thien-Thi Nguyen
|
92b47a4a99
|
Update years in copyright notice; nfc.
|
2005-08-07 10:56:27 +00:00 |
|
Jan Djärv
|
7537ab9c84
|
* lwlib-Xm.c (make_menu_in_widget): Disable drag and drop for
labels in menu bar.
|
2005-07-19 09:06:47 +00:00 |
|
Lute Kamstra
|
364c38d3af
|
Update FSF's address.
|
2005-07-04 15:47:28 +00:00 |
|
Stefan Monnier
|
3c916d6555
|
(xm_update_label, xm_update_list): Use the recommended
XmStringCreateLocalized function. Add missing copyright.
|
2005-03-17 19:03:16 +00:00 |
|
Jan Djärv
|
244c93fe57
|
Changes for lucid popup menus (keyboard traversal enabled) and dialogs
(Xaw and Xm pop down on ESC).
|
2004-01-12 01:45:22 +00:00 |
|
Miles Bader
|
ab5796a9f9
|
Add arch taglines
|
2003-09-01 15:45:59 +00:00 |
|
Juanma Barranquero
|
177c0ea743
|
Trailing whitespace deleted.
|
2003-02-04 14:56:31 +00:00 |
|
Jan Djärv
|
d0bdb0602c
|
lwlib-Xm.c: Fixed memory leak for menus.
|
2003-01-26 13:06:48 +00:00 |
|
Jan Djärv
|
9b7e90fd17
|
Remove compiler warning
|
2002-04-22 18:25:55 +00:00 |
|
Richard M. Stallman
|
2f96293d69
|
Include ../src/lisp.h.
|
2001-12-02 05:00:27 +00:00 |
|
Gerd Moellmann
|
388d6c3389
|
(x_print_complete_resource_name) [0]: New function.
|
2001-03-22 19:11:33 +00:00 |
|
Gerd Moellmann
|
667f102ab2
|
(make_menu_in_widget): Remove code forcing LessTif to
recompute centered text; it works fine without with current LessTif.
|
2001-03-13 16:51:13 +00:00 |
|
Gerd Moellmann
|
f25d58a47c
|
(make_menu_in_widget): Add an XmNpopdownCallback
instead of an XmNunmapCallback.
(xm_unmap_callback): Removed.
|
2001-03-13 16:30:15 +00:00 |
|
Gerd Moellmann
|
5625f709a4
|
(make_menubar): Take out code in #if 0.
|
2001-03-13 12:38:50 +00:00 |
|
Gerd Moellmann
|
3d57dbba1d
|
(xm_popup_menu): Don't set XmNmenuPost unless
necessary. From Rick Scott <rwscott@alumni.uwaterloo.ca>.
|
2001-03-13 12:31:55 +00:00 |
|
Gerd Moellmann
|
81e3f05877
|
(xm_arm_callback): Don't compare widgets with `None',
use NULL instead.
|
2001-02-28 15:03:11 +00:00 |
|
Gerd Moellmann
|
2f87cc746e
|
(xm_update_radiobox, update_one_menu_entry)
(xm_update_one_widget): Use XtSetSensitive instead of setting the
value of XmNsensitive. From Rick Scott
<rwscott@alumni.uwaterloo.ca>.
|
2001-02-28 14:54:54 +00:00 |
|
Gerd Moellmann
|
27e3b1a140
|
(xm_arm_callback): Fix last change.
|
2000-12-07 12:33:32 +00:00 |
|
Gerd Moellmann
|
924e171446
|
(xm_arm_callback): Handle case that W is null;
also see comment there.
|
2000-11-30 12:50:08 +00:00 |
|
Gerd Moellmann
|
8dd095ee45
|
Use NULL at the end of the
variable argument lists of XtVaSetValues and XtVaGetValues
functions because 0 is not sufficient on systems where sizeof
(int) < sizeof (void *).
|
2000-08-03 20:09:56 +00:00 |
|
Dave Love
|
200ca4d576
|
(P_): Use PROTOTYPES.
|
2000-06-06 14:13:17 +00:00 |
|
Gerd Moellmann
|
d21cf544f7
|
(make_menubar) [LESSTIF_VERSION]: Don't set
XmNresizeHeight and XmNresizeWidth.
|
2000-03-12 16:22:19 +00:00 |
|
Gerd Moellmann
|
1d4d17e24a
|
(make_menubar): Set XmNresizeHeight and
XmNresizeWidth resources only if LESSTIF_VERSION is defined.
|
2000-03-06 22:50:15 +00:00 |
|
Gerd Moellmann
|
566f7ec858
|
(xm_manage_resizing): Rewritten.
|
2000-03-05 14:32:02 +00:00 |
|
Gerd Moellmann
|
640438b056
|
(make_menu_in_widget): Don't add XmNpopdownCallback,
add XmNunmapCallback.
(xm_unmap_callback): New function.
(xm_pull_down_callback): Call pre-activate callback only if
parent is the menu bar.
|
2000-01-25 15:50:53 +00:00 |
|