| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
(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.
|
|
|
|
| |
on XFree86 is investigated.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
action procedure for compatibility with Lesstif/Motif.
* Makefile.in (mostlyclean): Don't remove *~ on clean.
|
|
|
|
|
|
| |
(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.
|
|
|
|
| |
(Xaw and Xm pop down on ESC).
|
| |
|
|
|
|
| |
(make_drawing_gcs): Remove unused `xswa', `mask'.
|
| |
|
|
|
|
|
| |
(remap_menubar): Don't look in new_stack[0].
(Left): At level 1, do the same thing Right does.
|
| |
|
|
|
|
|
|
|
| |
`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'.
|
|
|
|
|
|
|
| |
(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.
|
| |
|
|
|
|
| |
non-nil (not installed Emacs). To simplify debugging.
|
|
|
|
| |
window managers that steal keypresses.
|
|
|
|
|
|
| |
(Down, Up, Right): Use it.
(find_next_selectable): Prevent endless loops when only one item is enabled
in the menu.
|
|
|
|
|
|
|
| |
and RET.
(find_next_selectable, find_prev_selectable): New functions used for
finding menu-items.
(Down, Up, Left, Right): New functions.
|
| |
|
| |
|
|
|
|
| |
declaration.
|
|
|
|
| |
<SEPARATOR_SHADOW_ETCHED_OUT_DASH>: Fix call of draw_separator.
|
| |
|
|
|
|
| |
to avoid redefining struct timeval and struct timezone.
|
|
|
|
|
|
|
|
|
| |
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).
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
If the background color has changed, re-make the shadow-gcs too.
|
|
|
|
|
| |
leads to redefinition errors when static is defined as empty in
config.h. Refer to the gray bitmap in xfns.c, instead.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
color reference counts are right.
(release_shadow_gcs): Free colors.
|
|
|
|
|
|
|
| |
(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.
|
|
|
|
| |
of the screen's default colormap.
|
|
|
|
| |
(remap_menubar): Call highlight callback.
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
x_alloc_nearest_color_for_widget.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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'.
|
|
|
|
| |
top windows by the shadow width.
|
|
|
|
| |
don't display its submenu (if any).
|
| |
|
|
|
|
|
|
|
|
|
| |
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'.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
(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.
|
| |
|
| |
|
| |
|