diff options
| author | Jan D | 2010-07-08 12:35:54 +0200 |
|---|---|---|
| committer | Jan D | 2010-07-08 12:35:54 +0200 |
| commit | 522140507401f71d5884cf3fc63aaf432e4aba19 (patch) | |
| tree | d67e4bfda686a4941d152ba0daf5a152ea0c65d3 /src | |
| parent | c825c0b6473c1bd995dbef43cc07087609607cda (diff) | |
| download | emacs-522140507401f71d5884cf3fc63aaf432e4aba19.tar.gz emacs-522140507401f71d5884cf3fc63aaf432e4aba19.zip | |
Fix compilation for Motif/Lesstif.
* xmenu.c (set_frame_menubar, create_and_show_popup_menu)
(create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
unless USE_LUCID.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/xmenu.c | 6 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 6daf98787a5..d81c7e01629 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2010-07-08 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * xmenu.c (set_frame_menubar, create_and_show_popup_menu) | ||
| 4 | (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog) | ||
| 5 | unless USE_LUCID. | ||
| 6 | |||
| 1 | 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu> | 7 | 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 8 | ||
| 3 | * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative declaration. | 9 | * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative declaration. |
diff --git a/src/xmenu.c b/src/xmenu.c index 701433e7907..614ee7e8a4b 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -1282,7 +1282,9 @@ set_frame_menubar (FRAME_PTR f, int first_time, int deep_p) | |||
| 1282 | 1282 | ||
| 1283 | /* Make menu pop down on C-g. */ | 1283 | /* Make menu pop down on C-g. */ |
| 1284 | XtOverrideTranslations (menubar_widget, override); | 1284 | XtOverrideTranslations (menubar_widget, override); |
| 1285 | #ifdef USE_LUCID | ||
| 1285 | apply_systemfont_to_menu (menubar_widget); | 1286 | apply_systemfont_to_menu (menubar_widget); |
| 1287 | #endif | ||
| 1286 | } | 1288 | } |
| 1287 | 1289 | ||
| 1288 | { | 1290 | { |
| @@ -1614,7 +1616,9 @@ create_and_show_popup_menu (f, first_wv, x, y, for_click, timestamp) | |||
| 1614 | popup_deactivate_callback, | 1616 | popup_deactivate_callback, |
| 1615 | menu_highlight_callback); | 1617 | menu_highlight_callback); |
| 1616 | 1618 | ||
| 1619 | #ifdef USE_LUCID | ||
| 1617 | apply_systemfont_to_menu (menu); | 1620 | apply_systemfont_to_menu (menu); |
| 1621 | #endif | ||
| 1618 | 1622 | ||
| 1619 | dummy.type = ButtonPress; | 1623 | dummy.type = ButtonPress; |
| 1620 | dummy.serial = 0; | 1624 | dummy.serial = 0; |
| @@ -2016,7 +2020,7 @@ create_and_show_dialog (f, first_wv) | |||
| 2016 | abort(); | 2020 | abort(); |
| 2017 | 2021 | ||
| 2018 | dialog_id = widget_id_tick++; | 2022 | dialog_id = widget_id_tick++; |
| 2019 | #ifdef HAVE_XFT | 2023 | #ifdef USE_LUCID |
| 2020 | apply_systemfont_to_dialog (f->output_data.x->widget); | 2024 | apply_systemfont_to_dialog (f->output_data.x->widget); |
| 2021 | #endif | 2025 | #endif |
| 2022 | lw_create_widget (first_wv->name, "dialog", dialog_id, first_wv, | 2026 | lw_create_widget (first_wv->name, "dialog", dialog_id, first_wv, |