aboutsummaryrefslogtreecommitdiffstats
path: root/lwlib/xlwmenu.c
Commit message (Collapse)AuthorAgeFilesLines
* * xlwmenu.c (string_width):Jan Djärv2005-04-011-74/+58
| | | | | | | | (MENU_FONT_HEIGHT, MENU_FONT_ASCENT): Ditto. (display_menu_item, make_drawing_gcs, XlwMenuInitialize) (XlwMenuSetValues): Use font if fontSet is NULL, use only font for !HAVE_X_I18N. (xlwMenuResources): Add fontSet resource.
* Temporary #undef HAVE_X_I18N until FontSet for UTF-8Jan Djärv2005-03-221-0/+3
| | | | on XFree86 is investigated.
* (MENU_FONT_ASCENT) [HAVE_X_I18N]: Try to be more correct.Stefan Monnier2005-03-181-1/+2
|
* Add support for I18N to Lucid menus.Stefan Monnier2005-03-181-26/+99
| | | | | | | | | | | | | | | | * xlwmenuP.h (struct _XlwMenu_part) [HAVE_X_I18N]: Change `font' to be a fontset. Add a `font_extents' element. * xlwmenu.c (xlwMenuResources) [HAVE_X_I18N]: Use a fontset for the `font' resource. (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. (display_menu_item) [HAVE_X_I18N]: Use XmbDrawString. (make_drawing_gcs) [HAVE_X_I18N]: Don't mess with fonts. (XlwMenuInitialize) [HAVE_X_I18N]: Initialize font_extents. (XlwMenuSetValues) [HAVE_X_I18N]: Refresh font_extents if font changes.
* * xlwmenu.c (xlwMenuActionsList): Install MenuGadgetEscape as anJan Djärv2004-12-271-0/+1
| | | | | | action procedure for compatibility with Lesstif/Motif. * Makefile.in (mostlyclean): Don't remove *~ on clean.
* * xlwmenu.c (find_first_selectable, find_next_selectable)Jan Djärv2004-11-011-13/+12
| | | | | | (find_prev_selectable): Rename parameter skip_no_call_data to skip_titles. Recognize titles as having no call_data and no contents. (Down, Up): Comment update.
* Changes for lucid popup menus (keyboard traversal enabled) and dialogsJan Djärv2004-01-121-31/+78
| | | | (Xaw and Xm pop down on ESC).
* Add arch taglinesMiles Bader2003-09-011-0/+3
|
* Include lisp.h, not ../src/lisp.h.Dave Love2003-05-221-7/+1
| | | | (make_drawing_gcs): Remove unused `xswa', `mask'.
* Trailing whitespace deleted.Juanma Barranquero2003-02-041-1/+1
|
* (pop_new_stack_if_no_contents): Do nothing if new_depth is 1.Richard M. Stallman2002-12-221-2/+12
| | | | | (remap_menubar): Don't look in new_stack[0]. (Left): At level 1, do the same thing Right does.
* (separator_height): Prototype.Dave Love2002-11-201-1/+1
|
* (make_drawing_gcs): The scaling factor passed toPavel Janík2002-05-071-13/+6
| | | | | | | `x_alloc_lighter_color_for_widget' is a float, not an int, and it's a multiplicative factor, so the name `delta' is inaccurate. Always base disabled foreground on the normal foreground. Don't use the temporary variable `temp'.
* (xlwMenuResources): New resource.Pavel Janík2002-05-061-9/+49
| | | | | | | (find_next_selectable): Return current item when the menu is not poped 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 determined automatically.
* Change default values.Pavel Janík2002-04-291-4/+4
|
* Do not grab keyboard if installation-directory isJan Djärv2002-04-281-4/+6
| | | | non-nil (not installed Emacs). To simplify debugging.
* Add calls to Grab/UngrabKeyboard to remove strange interactions withJan Djärv2002-04-221-13/+36
| | | | window managers that steal keypresses.
* (find_next_selectable): New function.Pavel Janík2002-04-201-8/+43
| | | | | | (Down, Up, Right): Use it. (find_next_selectable): Prevent endless loops when only one item is enabled in the menu.
* (xlwMenuTranslations, xlwMenuActionsList): Add translations for cursor keysPavel Janík2002-04-191-0/+160
| | | | | | | and RET. (find_next_selectable, find_prev_selectable): New functions used for finding menu-items. (Down, Up, Left, Right): New functions.
* Include ../src/lisp.h.Richard M. Stallman2001-12-021-0/+2
|
* (xlwmenu_window_p): New function.Gerd Moellmann2001-04-301-0/+17
|
* (gray_bitmap_bits): Remove `unsigned' fromDave Love2000-12-141-1/+1
| | | | declaration.
* (draw_separator) <SEPARATOR_SHADOW_ETCHED_IN_DASH>:Dave Love2000-12-111-2/+2
| | | | <SEPARATOR_SHADOW_ETCHED_OUT_DASH>: Fix call of draw_separator.
* (xlwmenu_redisplay): New function.Gerd Moellmann2000-11-211-0/+11
|
* * xlwmenu.c: Before including <X11/Xos.h> on SUN, define SUNOS41Sam Steingold2000-09-281-80/+86
| | | | to avoid redefining struct timeval and struct timezone.
* (remap_menubar):Miles Bader2000-09-041-3/+7
| | | | | | | | | Only include the menu-margin in the initial X & Y positions for horizontal menu-bars. (fit_to_screen): If moving a sub-menu to the left-side, increment its x-position by the shadow-thickness to make it look more attached to the invoking menu-item (similarly to the way it would be displayed on the right side).
* (XlwMenuSetValues): Pass the correct pointer type to XtIsRealized.Miles Bader2000-09-041-1/+1
|
* (XlwMenuSetValues): Only frob the display if the menu is actually displayed.Miles Bader2000-09-041-9/+11
|
* (x_alloc_lighter_color_for_widget):Miles Bader2000-09-031-15/+14
| | | | | | | | | New extern declaration. (make_shadow_gcs) [emacs]: Use x_alloc_lighter_color_for_widget to do shadow calculation. (make_shadow_gcs): Remove code that tests whether the top shadow is dimmer than the bottom shadow--it shouldn't ever happen.
* (XlwMenuSetValues):Miles Bader2000-08-301-0/+7
| | | | If the background color has changed, re-make the shadow-gcs too.
* Don't include <X11/bitmaps/gray> because thatGerd Moellmann2000-07-191-4/+19
| | | | | leads to redefinition errors when static is defined as empty in config.h. Refer to the gray bitmap in xfns.c, instead.
* (make_shadow_gcs): Set free_top_shadow_color_pGerd Moellmann2000-06-161-21/+46
| | | | | | and free_top_shadow_color_p flags in the menu widget if top and bottom shadow colors must be freed. (release_shadow_gcs): Free colors only if they must be freed.
* (make_shadow_gcs): Free and copy colors so thatGerd Moellmann2000-06-121-5/+36
| | | | | color reference counts are right. (release_shadow_gcs): Free colors.
* (x_alloc_nearest_color_for_widget, x_catch_errors, x_uncatch_errors)Dave Love2000-06-061-3/+11
| | | | | | | (x_had_errors_p, x_clear_errors): Add prototypes -- should be moved into separate header. (make_shadow_gcs) <x_alloc_nearest_color_for_widget>: Cast first arg. (Start) <pop_up_menu>: Cast second arg.
* (make_shadow_gcs): Use the widget's colormap insteadGerd Moellmann2000-03-041-1/+1
| | | | of the screen's default colormap.
* (xlwMenuResources): All XtNhighlightCallback.Gerd Moellmann2000-01-171-0/+7
| | | | (remap_menubar): Call highlight callback.
* Add support for large files, plus some locale improvements.Paul Eggert1999-10-191-0/+4
| | | | | | | | | * dispatch.c, lwlib-Xaw.c, lwlib-Xlw.c, lwlib-Xm.c, lwlib.c, xlwmenu.c, xrdb-cpp.c, xrdb.c: Include <config.h> before any system include files. * lwlib-Xm.c, lwlib.c: Do not include <stdlib.h> or <string.h>, as <config.h> does this.
* (make_shadow_gcs): CallGerd Moellmann1999-09-031-2/+2
| | | | x_alloc_nearest_color_for_widget.
* (make_shadow_gcs) ]emacs]: Use x_alloc_nearest_color.Gerd Moellmann1999-07-211-77/+465
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (all_dashes_p): Removed. (size_menu_item): Call lw_separator_p. (display_menu_item): Ditto. (display_menu): Ditto. (draw_separator): New. (display_menu_item): Call it. (separator_height): New. (size_menu_item): Call it. (abort_gracefully): New. (display_menu): Use it instead of abort. (size_menu): Ditto. (xlwMenuResources): Change previously unused XtNmargin to 4. (size_menu): Take margin into account. (display_menu_item): Ditto. (remap_menubar): Ditto. (draw_arrow): Draw it 3D. (radio_button_width): New. (size_menu_item): Use new functions. (draw_shadow_rhombus): New. (draw_radio): Use radio_button_width and draw_shadow_rhombus. (draw_toggle): Use toggle_button_width. (size_menu_item): Add parameter button_width. (size_menu): Compute button_width. (toggle_button_width): New. (draw_toggle): New. (draw_radio): New. (draw_shadow_rectangle): Add parameter `down_p'.
* (motion_event_is_in_menu): Extend the left andRichard M. Stallman1997-09-201-4/+5
| | | | top windows by the shadow width.
* (display_menu): If an item is disabled,Richard M. Stallman1997-07-261-2/+11
| | | | don't display its submenu (if any).
* (pop_up_menu): Update the call to x_catch_errors.Richard M. Stallman1997-05-021-2/+3
|
* (enriched-translations): Add top' and choice' everywhere so that *Richard M. Stallman1997-01-221-11/+30
| | | | | | | | | can be entered. (custom-face-attributes): Don't use top-line'. (mode-line-format): Replace (:eval mode-line-mode-name)'. (mode-line-mode-name): New. (make-mode-line-mouse-sensitive): Don't change default value of x' are found before files starting with down_p'.
* Fix FSF address in comment.Karl Heuer1996-07-201-2/+3
|
* (motion_event_is_in_menu): Make x and y signed.Richard M. Stallman1996-03-011-2/+2
|
* Comment fixes.Karl Heuer1996-01-051-1/+1
|
* (xlwMenuActionsList): Add "key" and "nothing".Richard M. Stallman1995-12-311-4/+86
| | | | | | | | | (xlwMenuTranslations): Add translations for Key, KeyUp, and for the modifier keysyms. (Nothing, Key): New functions. (XlwMenuSetValues): Do redisplay if non-null contents get replaced by empty contents.
* (display_menu_item): Fix previous change.Richard M. Stallman1995-11-151-1/+1
|
* (display_menu_item): Don't treat buttons specially.Richard M. Stallman1995-11-101-0/+3
|
* (Drag): Do nothing unless menu.popped_up field is set.Karl Heuer1995-05-291-1/+2
|