summaryrefslogtreecommitdiff
path: root/src/menu.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2013-09-05 15:43:11 +0300
committerEli Zaretskii <eliz@gnu.org>2013-09-05 15:43:11 +0300
commit5877bb8d7e55eda3f81a36bfabe4dd816a34269f (patch)
tree779550b544f248132cd97c819070fb8aa0aa8bd7 /src/menu.c
parente7873136dd8dbacbbebf534500355d29a07fed8e (diff)
downloademacs-5877bb8d7e55eda3f81a36bfabe4dd816a34269f.tar.gz
Removed unnecessary tests for GUI sessions and created menu faces.
Diffstat (limited to 'src/menu.c')
-rw-r--r--src/menu.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/menu.c b/src/menu.c
index 2b199ffdf09..b9d1b7668b1 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -1077,8 +1077,6 @@ no quit occurs and `x-popup-menu' returns nil. */)
{
bool get_current_pos_p = 0;
- check_window_system (SELECTED_FRAME ());
-
/* Decode the first argument: find the window and the coordinates. */
if (EQ (position, Qt)
|| (CONSP (position) && (EQ (XCAR (position), Qmenu_bar)
@@ -1194,11 +1192,6 @@ no quit occurs and `x-popup-menu' returns nil. */)
xpos += XINT (x);
ypos += XINT (y);
- /* FIXME: Find a more general check! */
- if (!(FRAME_X_P (f) || FRAME_MSDOS_P (f)
- || FRAME_W32_P (f) || FRAME_NS_P (f)))
- error ("Can not put GUI menu on this terminal");
-
XSETFRAME (Vmenu_updating_frame, f);
}
#endif /* HAVE_MENUS */