summaryrefslogtreecommitdiff
path: root/src/nsmenu.m
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2014-06-03 12:59:55 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2014-06-03 12:59:55 -0700
commit181f08a7d8378c5d3cb290b58c7618396413d28c (patch)
treed36524ab6287a64f552897cfe3f1c8e2bce14213 /src/nsmenu.m
parent5897da1d746561c63719b21c5984b49a194f8209 (diff)
downloademacs-181f08a7d8378c5d3cb290b58c7618396413d28c.tar.gz
Do not require libXt-devel when building with gtk.
* lwlib/lwlib-widget.h: New file, with contents taken from lwlib.h. (widget_value) [HAVE_NTGUI]: New member 'title'. * lwlib/lwlib.h: Include lwlib-widget.h. (change_type, enum button_type, widget_value): Move to lwlib-widget.h. * src/gtkutil.h, src/menu.h: Include lwlib-widget.h, not lwlib-h, to avoid dependency on libXt-devel. * src/menu.h [HAVE_NTGUI]: Include lwlib-widget.h in this case too. (enum button_type, widget_value) [HAVE_NTGUI]: Remove, as lwlib-widget.h now does this. * src/nsmenu.m (ns_menu_show): "enabled" -> "enable" to fix typo.
Diffstat (limited to 'src/nsmenu.m')
-rw-r--r--src/nsmenu.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nsmenu.m b/src/nsmenu.m
index e5f0b7668bc..46b7400b2e4 100644
--- a/src/nsmenu.m
+++ b/src/nsmenu.m
@@ -943,7 +943,7 @@ ns_menu_show (struct frame *f, int x, int y, bool for_click, bool keymaps,
}
#endif /* not HAVE_MULTILINGUAL_MENU */
- wv = make_widget_value (SSDATA (item_name), NULL, !NILP (enabled),
+ wv = make_widget_value (SSDATA (item_name), NULL, !NILP (enable),
STRINGP (help) ? help : Qnil);
if (prev_wv)
prev_wv->next = wv;