1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-25 07:28:20 +00:00
Commit Graph

90 Commits

Author SHA1 Message Date
Stefan Monnier
423a3f5901 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.
2005-03-18 04:19:41 +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
Stefan Monnier
9f9e527507 *** empty log message *** 2005-03-17 17:17:57 +00:00
Stefan Monnier
f7b758bd80 *** empty log message *** 2005-03-12 23:39:37 +00:00
Jan Djärv
4220b2a5ce * xlwmenu.c (xlwMenuActionsList): Install MenuGadgetEscape as an
action procedure for compatibility with Lesstif/Motif.

* Makefile.in (mostlyclean): Don't remove *~ on clean.
2004-12-27 15:22:36 +00:00
Jan Djärv
4e6e2184d8 * lwlib-Xaw.c: Put <KeyPress>Escape in dialogOverride so dialogs only
pops down on Escape, not any keypress.
2004-12-26 16:02:26 +00:00
Jan Djärv
03a693b48a * xlwmenu.c (find_first_selectable, find_next_selectable)
(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.
2004-11-01 12:20:45 +00:00
Jan Djärv
05bdae441b * lwlib.h (_widget_value): Added lname and lkey. 2004-08-30 19:42:20 +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
Lute Kamstra
19bb0fcdf1 Update my email address. 2003-10-06 08:32:09 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Dave Love
404074e226 Include lisp.h, not ../src/lisp.h.
(make_drawing_gcs): Remove unused `xswa', `mask'.
2003-05-22 13:38:44 +00:00
Juanma Barranquero
d7acd77436 *** empty log message *** 2003-04-30 00:13:34 +00:00
Juanma Barranquero
177c0ea743 Trailing whitespace deleted. 2003-02-04 14:56:31 +00:00
Jan Djärv
fb7df251b9 Update email and real name 2003-01-30 17:21:51 +00:00
Jan Djärv
d0bdb0602c lwlib-Xm.c: Fixed memory leak for menus. 2003-01-26 13:06:48 +00:00
Richard M. Stallman
0b17a21779 *** empty log message *** 2002-12-22 22:06:38 +00:00
Dave Love
207c13a78f Provide ISO C arglists for functions
with Boolean args.
2002-11-21 10:58:13 +00:00
Dave Love
db0e17de66 Remove obsolete USE_OLIT code.
[PROTOTYPES]: Provide ISO C arglists for functions with Boolean
args.
(lwlib_memset): Declare length arg as size_t.
(malloc_widget_value): Cast arg of lwlib_memset.
2002-11-20 19:26:18 +00:00
Pavel Janík
ef93458b2f (make_drawing_gcs): The scaling factor passed to
`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'.
2002-05-07 05:22:48 +00:00
Pavel Janík
8b71a9ca6f (xlwMenuResources): New resource.
(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.
2002-05-06 18:56:25 +00:00
Stefan Monnier
bcd833b2a2 *** empty log message *** 2002-04-30 19:21:33 +00:00
Pavel Janík
e656fc9d38 *** empty log message *** 2002-04-29 09:27:57 +00:00
Jan Djärv
005e0d57fc Do not grab keyboard if installation-directory is
non-nil (not installed Emacs).  To simplify debugging.
2002-04-28 19:54:30 +00:00
Pavel Janík
2bad4ee209 Remove unused file. 2002-04-28 13:38:13 +00:00
Pavel Janík
9d5ebed11b Remove OpenLook file dependencies.
(xrdb-cpp.o): Remove target.
Remove unused defines.
2002-04-28 13:35:36 +00:00
Pavel Janík
38e668dfb2 (instantiate_widget_instance): Remove duplicated prototype. 2002-04-28 13:19:45 +00:00
Pavel Janík
90077f6669 *** empty log message *** 2002-04-25 05:49:26 +00:00
Jan Djärv
6be3e0da26 *** empty log message *** 2002-04-22 18:27:39 +00:00
Pavel Janík
7769818bc9 *** empty log message *** 2002-04-20 13:41:07 +00:00
Pavel Janík
6ad6535ba3 *** empty log message *** 2002-04-19 19:04:25 +00:00
Pavel Janík
e7c9e4455f Fix typo and whitespaces. 2002-04-19 11:39:17 +00:00
Eli Zaretskii
5e3238f491 *** empty log message *** 2002-04-19 10:35:52 +00:00
Richard M. Stallman
6147334f2b *** empty log message *** 2002-03-18 04:44:05 +00:00
Eli Zaretskii
663671d5a8 (P_): Don't define if already defined. 2002-03-16 09:39:48 +00:00
Pavel Janík
7a4b11ca02 *** empty log message *** 2002-01-27 18:25:50 +00:00
Pavel Janík
ca79970e2a (xaw_create_dialog): Initialize icon_name to suppress compiler warnings. 2002-01-09 11:01:58 +00:00
Pavel Janík
4521d1fccf *** empty log message *** 2001-12-18 06:27:15 +00:00
Pavel Janík
03f9f7aeb5 *** empty log message *** 2001-12-08 21:06:01 +00:00
Richard M. Stallman
656f46bbb4 *** empty log message *** 2001-12-02 05:10:41 +00:00
Richard M. Stallman
66458f3247 *** empty log message *** 2001-11-29 00:53:52 +00:00
Gerd Moellmann
6aa97356aa *** empty log message *** 2001-10-21 17:41:43 +00:00
Gerd Moellmann
71431a0ea1 *** empty log message *** 2001-10-21 09:04:46 +00:00
Gerd Moellmann
ab952a4f34 *** empty log message *** 2001-10-10 09:43:20 +00:00
Gerd Moellmann
14a3dff75b *** empty log message *** 2001-10-09 10:18:43 +00:00
Gerd Moellmann
2a34a036ff *** empty log message *** 2001-10-06 09:57:20 +00:00
Gerd Moellmann
3e057f36a0 Remove log entries for 20.5 .. 20.7. 2001-05-09 09:50:49 +00:00
Gerd Moellmann
a9793e4573 *** empty log message *** 2001-04-30 15:25:53 +00:00
Gerd Moellmann
6c29b43cdc *** empty log message *** 2001-03-23 11:14:13 +00:00
Gerd Moellmann
3c9e997b3c *** empty log message *** 2001-03-22 19:52:23 +00:00