From 5877bb8d7e55eda3f81a36bfabe4dd816a34269f Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 5 Sep 2013 15:43:11 +0300 Subject: Removed unnecessary tests for GUI sessions and created menu faces. --- src/menu.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/menu.c') 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 */ -- cgit v1.2.1