Mercurial > emacs
comparison lwlib/ChangeLog @ 60698:3e557e11645e
Add support for I18N to Lucid menus.
* 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.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Fri, 18 Mar 2005 04:19:41 +0000 |
parents | 68d57432d36d |
children | ff22cb93ce7a 30ad2795fdab |
comparison
equal
deleted
inserted
replaced
60697:d9c9ad74e719 | 60698:3e557e11645e |
---|---|
1 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca> | 1 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca> |
2 | |
3 Add support for I18N to Lucid menus. | |
4 | |
5 * xlwmenuP.h (struct _XlwMenu_part) [HAVE_X_I18N]: Change `font' to be | |
6 a fontset. Add a `font_extents' element. | |
7 | |
8 * xlwmenu.c (xlwMenuResources) [HAVE_X_I18N]: Use a fontset for the | |
9 `font' resource. | |
10 (string_width) [HAVE_X_I18N]: Use XmbTextExtents; | |
11 (MENU_FONT_HEIGHT, MENU_FONT_ASCENT): New macros. | |
12 (arrow_width, toggle_button_width, size_menu_item, draw_arrow) | |
13 (draw_toggle, draw_radio, display_menu_item): Use them. | |
14 (display_menu_item) [HAVE_X_I18N]: Use XmbDrawString. | |
15 (make_drawing_gcs) [HAVE_X_I18N]: Don't mess with fonts. | |
16 (XlwMenuInitialize) [HAVE_X_I18N]: Initialize font_extents. | |
17 (XlwMenuSetValues) [HAVE_X_I18N]: Refresh font_extents if font changes. | |
2 | 18 |
3 * lwlib-Xm.c (xm_update_label, xm_update_list): Use the recommended | 19 * lwlib-Xm.c (xm_update_label, xm_update_list): Use the recommended |
4 XmStringCreateLocalized function. Add missing copyright. | 20 XmStringCreateLocalized function. Add missing copyright. |
5 | 21 |
6 * lwlib-Xm.h: Add missing copyright and license notice. | 22 * lwlib-Xm.h: Add missing copyright and license notice. |