+2011-01-25 Werner Meisner <weme24@gmx.net>
+
+ * lwlib-Xm.c (xm_update_menu): Avoid a NULL pointer dereference
+ (Bug#7690).
+
+2010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
+
+ Use const for some pointer arguments.
+ * lwlib.h (my_strcasecmp, safe_strcmp, name_to_widget)
+ (find_in_table, dialog_spec_p, lw_separator_p):
+ * lwlib.c (my_strcasecmp, safe_strcmp, name_to_widget)
+ (find_in_table, dialog_spec_p, lw_separator_p): Use const.
+
+2010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * lwlib.h (lw_register_widget, lw_create_widget):
+ * lwlib.c (allocate_widget_info, lw_register_widget)
+ (lw_create_widget, separator_table): Use const.
+
+2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * xlwmenu.c (abort_gracefully): Mark as NO_RETURN.
+
+2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * xlwmenu.h (xlwmenu_window_p, xlwmenu_redisplay): Add declarations.
+
+2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
+
+ * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS): Set from
+ substitution.
+ (ALL_CFLAGS): Add ${C_WARNINGS_SWITCH} and ${PROFILING_CFLAGS}.
+
+2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
+
+ * 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.
+
+ * lwlib.c (allocate_widget_info, lw_register_widget): Change from K&R
+ to prototype.
+ (lw_internal_update_other_instances, merge_widget_value): Reformat.
+
+ * lwlib-int.h (widget_creation_function): Fix prototype.
+
+ * 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-Xlw.c (x_print_complete_resource_name): Change from K&R to
+ prototype.
+ (xlw_update_one_value): Reformat.
+
+ * 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.
+
+2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * 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-Xlw.c (xlw_update_one_widget):
+ (xlw_pop_instance): Likewise.
+ * lwlib-Xaw.c (xaw_update_one_widget, xaw_pop_instance):
+ Likewise.
+ * lwlib-Xm.c (P_): Remove.
+
+2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
+
+ * lwlib.c (lwlib_memset, lwlib_bcopy): Remove.
+ (malloc_widget_value, free_widget_info, allocate_widget_instance)
+ (lw_separator_p): Replace lwlib_memset, lwlib_bcopy, bzero, bcmp by
+ memset, memcpy, memcmp.
+ * lwlib-utils.c (XtApplyToWidgets): Likewise.
+ * xlwmenu.c (XlwMenuInitialize): Likewise.
+ * lwlib.h (lwlib_bcopy): Remove declaration.
+
+2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
+
+ * xlwmenu.c (XlwMenuSetValues, XlwMenuInitialize): Correct prototype.
+ (display_menu_item): Remove unused variable gi.
+ (make_windows_if_needed): Remove unused variable screen.
+ (XlwMenuRedisplay): Remove unused variable i.
+
+ * lwlib-Xaw.c: Include <ctype.h> for isdigit.
+ (fill_xft_data, set_text): Remove unused variable screen.
+ (draw_text): Cast bp to FcChar8*.
+ (find_xft_data): Return 0 if inst or xft_data is not set.
+ (wm_delete_window): Correct prototype. Initialize widget to 0
+ and return if widget is still 0 after loop.
+
+2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * lwlib-Xaw.c: Convert function definitions to standard C.
+ * lwlib-Xlw.c:
+ * lwlib-utils.c:
+ * lwlib.c:
+ * lwlib.h:
+ * xlwmenu.c: Likewise.
+
+2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
+
+ * lwlib-Xm.c: Remove __P and P_ from .c and .m files.
+ * lwlib-Xm.c:
+ * lwlib.c:
+ * xlwmenu.c: Likewise.
+
+ Remove P_ and __P macros.
+ * lwlib-Xaw.h: Remove P_ and __P macros.
+ * lwlib-Xlw.h:
+ * lwlib-Xm.h:
+ * lwlib-int.h:
+ * lwlib-utils.h:
+ * lwlib.h: Likewise.
+
+2010-05-15 Glenn Morris <rgm@gnu.org>
+
+ * Makefile.in (mostlyclean): Remove references to non-existent files.
+
+2010-05-13 Jan Djärv <jan.h.d@swipnet.se>
+
+ * lwlib-Xaw.c (make_dialog): Remove extra arg to XtVaGetSubresources.
+
+2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
+
+ * xlwmenu.c (XlwMenuDestroy): Remove XtDestroyWidget on subwidgets
+ (Bug #6127).
+
+2010-05-07 Chong Yidong <cyd@stupidchicken.com>
+
+ * Version 23.2 released.
+
+2010-05-06 Glenn Morris <rgm@gnu.org>
+
+ * Makefile.in (CPP, LN_S, TOP, LN): Remove unused variables.
+
+2010-05-04 Glenn Morris <rgm@gnu.org>
+
+ * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE):
+ Use @C_SWITCH_SYSTEM@, @C_SWITCH_MACHINE@ instead of
+ @c_switch_system@, @c_switch_machine@.
+
+2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * Makefile.in (C_SWITCH_X_SYSTEM): Define using autoconf.
+
+2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
+
+ * xlwmenu.c (expose_cb):
+ * lwlib-Xaw.c (fill_xft_data): Declarations before code.
+
+2010-04-17 Jan Djärv <jan.h.d@swipnet.se>
+
+ * xlwmenu.c: Include Shell.h, remove duplicate declaration of
+ XlwMenuRedisplay.
+ (display_menu_item): Replace ws->window with ws->pixmap, remove
+ call to XftDrawRect.
+ (display_menu): Remove this and that argument.
+ Remove just_compute_this_one_p. Fill pixmap at start and copy it to
+ window at end.
+ (expose_cb): New function.
+ (make_windows_if_needed): Replace XCreateWindow with XtCreatePopup.
+ Add eventhandler for expose to expose_cb. Remove creation of xft_draw.
+ (create_pixmap_for_menu): New function.
+ (remap_menubar): Pop down menus that aren't the same as in old_stack.
+ Set width, heigh, x, y on widget with XtVaSetValues.
+ Call create_pixmap_for_menu.
+ Replace XUnmapWindow with XtPopdown.
+ Remowe two last parameters to display_menu.
+ (map_event_to_widget_value, XlwMenuRedisplay, Key, Select)
+ (pop_up_menu): Remowe two last parameters to display_menu.
+ (XlwMenuRealize): Call create_pixmap_for_menu, set w and pixmap.
+ Remove call to XftDrawCreate.
+ (XlwMenuDestroy): Free pixmap. Call XtDestroyWidget instead of
+ XDestroyWindow.
+ (handle_motion_event): Only call handle_single_motion_event once.
+ (set_window_type): New function.
+ (make_windows_if_needed, XlwMenuRealize): Call set_window_type.
+
+ * xlwmenuP.h (window_state): Add pixmap and w.
+
+2010-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
+
+ * xlwmenu.c (facename_changed): Put function in #ifdef HAVE_XFT.
+
+2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
+ (C_SWITCH_X_SITE): Define using autoconf.
+
+2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
+
+ * lwlib-Xaw.c (widget_xft_data): New for Xft data.
+ (fill_xft_data, openFont, get_text_width_and_height)
+ (draw_text, set_text, find_xft_data, command_press)
+ (command_reset): New functions.
+ (xaw_update_one_widget): Call set_text for dialog and buttons
+ if HAVE_XFT. Also set internalHeight for buttons.
+ (xaw_destroy_instance): Free all Xft related data.
+ (button_actions, buttonTrans): New structures.
+ (make_dialog): Call XtAppAddActions for button_actions.
+ Find xft font to use and call fill_xft_data for widgets.
+ (xaw_create_dialog): Pass instance parameter to make_dialog.
+
+ * lwlib-int.h (_widget_instance): Add Xft data if HAVE_XFT.
+ Override translations for buttons. If depth is 16 or more, tell
+ Xaw3d to not be nice to colormap.
+ Remove separator widget, use XtNhorizDistance on first right button
+ instead.
+
+2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
+
+ * xlwmenu.c (xlwmenu_default_font): Make static.
+ (xlwMenuResources): Add XtNfaceName and XtNdefaultFace.
+ (string_width): Use XftTextExtentsUtf8 if HAVE_XFT.
+ (MENU_FONT_HEIGHT, MENU_FONT_ASCENT): Add versions for
+ HAVE_XFT.
+ (size_menu): Set max_rest_width in window_state structure.
+ (display_menu_item): If HAVE_XFT and xft_draw is set, use
+ XftDrawRect and XftDrawStringUtf8 to draw text.
+ (make_windows_if_needed): Set max_rest_width and xft_draw
+ in windows[i].
+ (openXftFont): New.
+ (XlwMenuInitialize): Call openXftFont if HAVE_XFT. If mw->menu.font
+ is not set, load font fixed and save it in xlwmenu_default_font.
+ (XlwMenuInitialize): Set max_rest_width and xft_draw in windows[0].
+ (XlwMenuClassInitialize): Initialize xlwmenu_default_font.
+ (XlwMenuRealize): Set xft_fg, xft_bg, xft_disabled_fg and
+ windows[0].xft_draw if xft_font is set.
+ (XlwMenuDestroy): Destroy all xft_draw and close xft_font.
+ (facename_changed): New.
+ (XlwMenuSetValues): Call facename_changed. If face name did change,
+ close old fonts and destroy xft_draw:s. Then create new ones.
+
+ * xlwmenu.h (XtNfaceName, XtCFaceName, XtNdefaultFace,
+ XtCDefaultFace): New.
+
+ * xlwmenuP.h (_window_state): Add max_rest_width and xft_draw.
+ (_XlwMenu_part): Add faceName,xft_fg, xft_bg, xft_disabled_fg and
+ xft_font.
+
+2010-03-10 Chong Yidong <cyd@stupidchicken.com>
+
+ * Branch for 23.2.
+
+2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * xlwmenu.c:
+ * lwlib.c:
+ * lwlib-utils.c:
+ * lwlib-Xm.c:
+ * lwlib-Xlw.c:
+ * lwlib-Xaw.c: Include setjmp.h.
+
+2009-06-21 Chong Yidong <cyd@stupidchicken.com>
+
+ * Branch for 23.1.
+
+2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * Makefile.in (ALL_CFLAGS): Remove reference to C_SWITCH_SITE.
+
+2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * lwlib.c: Remove references to obsolete variables.
+
+2008-06-02 Jim Meyering <meyering@redhat.com>
+
+ Remove useless if-before-free tests.
+ * lwlib-Xm.c (xm_update_one_value): Likewise.
+ * lwlib.c (safe_free_str, free_widget_value_tree): Likewise.
+
2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
* Makefile.in (TOOLKIT_DEFINES): Remove.
* xlwmenu.c (xlwMenuResources) [HAVE_X_I18N]: Use a fontset for the
`font' resource.
- (string_width) [HAVE_X_I18N]: Use XmbTextExtents;
+ (string_width) [HAVE_X_I18N]: Use XmbTextExtents.
(MENU_FONT_HEIGHT, MENU_FONT_ASCENT): New macros.
(arrow_width, toggle_button_width, size_menu_item, draw_arrow)
(draw_toggle, draw_radio, display_menu_item): Use them.
* xlwmenu.c (xlwMenuResources): New resource.
(find_next_selectable): Return current item when the menu is not
- poped up.
+ popped up.
Rename `inactive_gc' to `disabled_gc'.
Use lighter/darker color for disabled menu items instead of using
stipple. Use stipple only when better color can not be
* lwlib/Makefile.in (lwlib-utils.o, lwlib.o, lwlib-Xlw.o)
(lwlib-Xaw.o, lwlib-Xm.o, lwlib-Xol.o, lwlib-Xolmb.o):
- Add dependencies to corresponding .c files. for Solaris 2.x VPATH make.
+ Add dependencies to corresponding .c files for Solaris 2.x VPATH make.
1998-04-06 Andreas Schwab <schwab@gnu.org>
[USE_XAW]: Include <X11/Xaw/Paned.h>.
(lwlib_memset, lwlib_bcopy): Explicitly declare return type.
-1997-12-20 Richard Stallman <rms@delysid.gnu.org>
-
- * lwlib-Xm.c (update_one_menu_entry):
- Add conditional in case XmNpositionIndex is missing.
-
1997-12-20 Richard Stallman <rms@psilocin.gnu.org>
* lwlib-Xm.c (update_one_menu_entry):
When XmIsCascadeButton, don't call XmCreateCascadeButtonGadget,
just modify the existing one.
-1996-08-09 Marcus Daniels <marcus@sayre.sysc.pdx.edu>
+1996-08-09 Marcus G. Daniels <marcus@sayre.sysc.pdx.edu>
* lwlib.c (merge_widget_value): Undo previous change.
* Version 19.32 released.
-1996-07-31 Marcus Daniels <marcus@sayre.sysc.pdx.edu>
+1996-07-31 Marcus G. Daniels <marcus@sayre.sysc.pdx.edu>
* lwlib-Xm.c (make_menubar): Turn off menu accelerator.
-1996-07-24 Marcus Daniels <marcus@sayre.sysc.pdx.edu>
+1996-07-24 Marcus G. Daniels <marcus@sayre.sysc.pdx.edu>
* lwlib.c (merge_widget_value) [USE_MOTIF]: Pass along the change
flag from merged_contents.
* lwlib-Xm.h, lwlib-Xm.c, lwlib.h, lwlib.c: Undo previous change.
-1996-07-03 Marcus Daniels <marcus@sayre.sysc.pdx.edu>
+1996-07-03 Marcus G. Daniels <marcus@sayre.sysc.pdx.edu>
* lwlib-Xm.h: Declare lw_motif_menu_related_event_p.
* lwlib.c (lw_toolkit_related_event_p): A predicate to identify
toolkit-specific events.
-1996-06-07 Marcus Daniels <marcus@sayre.sysc.pdx.edu>
+1996-06-07 Marcus G. Daniels <marcus@sayre.sysc.pdx.edu>
* lwlib-Xm.c (make_menu_in_widget): Set mapping delay
for cascade buttons to zero.
cascade button itself. This works around a Motif SIGSEGV in the
function `InSharedMenuHierarchy'.
-1994-10-29 Richard Stallman <rms@duality.gnu.ai.mit.edu>
-
- * xlwmenu.c (xlwmenu_default_font): New global variable.
- (XlwMenuInitialize): Use xlwmenu_default_font to default
- the font if necessary. Make mw, itself, an argument.
-
1994-10-26 Richard Stallman <rms@duality.gnu.ai.mit.edu>
* xlwmenu.c (pop_up_menu): Pass a Display * to x_catch_errors, etc.
* xlwmenu.c: Add #include <X11/ObjectP.h> for X11R4.
-1994-09-18 Fred Pierresteguy <F.Pierresteguy@frcl.bull.fr>
+1994-09-18 Frederic Pierresteguy <F.Pierresteguy@frcl.bull.fr>
* lwlib-Xm.c (make_dialog): When there is more than two pushbuttons,
set XmPACK_TIGHT and XmHORIZONTAL to the rowcolumn. Also add a
;; Local Variables:
;; coding: utf-8
-;; add-log-time-zone-rule: t
;; End:
- Copyright (C) 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004,
- 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+ Copyright (C) 1995-1999, 2001-2011 Free Software Foundation, Inc.
This file is part of GNU Emacs.
You should have received a copy of the GNU General Public License
along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
-
-;;; arch-tag: 0cd8ab87-d764-40d9-b86d-d00c71887a9e