comparison src/xmenu.c @ 6325:d6817c9c0413

Undo previous change. Instead: (Fx_popup_dialog) [! USE_X_TOOLKIT]: Call Fx_popup_menu.
author Richard M. Stallman <rms@gnu.org>
date Mon, 14 Mar 1994 00:18:52 +0000
parents fa8040a2bba9
children 6240067bfe33
comparison
equal deleted inserted replaced
6324:fa8040a2bba9 6325:d6817c9c0413
826 826
827 if (error_name) error (error_name); 827 if (error_name) error (error_name);
828 return selection; 828 return selection;
829 } 829 }
830 830
831 #ifdef USE_X_TOOLKIT
832
833 DEFUN ("x-popup-dialog", Fx_popup_dialog, Sx_popup_dialog, 1, 2, 0, 831 DEFUN ("x-popup-dialog", Fx_popup_dialog, Sx_popup_dialog, 1, 2, 0,
834 "Pop up a dialog box and return user's selection.\n\ 832 "Pop up a dialog box and return user's selection.\n\
835 POSITION is a position specification. This is either a mouse button event\n\ 833 POSITION is a position specification. This is either a mouse button event\n\
836 or a list ((XOFFSET YOFFSET) WINDOW)\n\ 834 or a list ((XOFFSET YOFFSET) WINDOW)\n\
837 where XOFFSET and YOFFSET are positions in characters from the top left\n\ 835 where XOFFSET and YOFFSET are positions in characters from the top left\n\
860 If POSITION is nil, don't display the menu at all, just precalculate the\n\ 858 If POSITION is nil, don't display the menu at all, just precalculate the\n\
861 cached information about equivalent key sequences.") 859 cached information about equivalent key sequences.")
862 (position, menu) 860 (position, menu)
863 Lisp_Object position, menu; 861 Lisp_Object position, menu;
864 { 862 {
863 #ifndef USE_X_TOOLKIT
864 return Fx_popup_menu (position, menu);
865 #else
865 int number_of_panes, panes; 866 int number_of_panes, panes;
866 Lisp_Object keymap, tem; 867 Lisp_Object keymap, tem;
867 int xpos, ypos; 868 int xpos, ypos;
868 Lisp_Object title; 869 Lisp_Object title;
869 char *error_name; 870 char *error_name;
953 954
954 UNGCPRO; 955 UNGCPRO;
955 956
956 if (error_name) error (error_name); 957 if (error_name) error (error_name);
957 return selection; 958 return selection;
958 }
959 #endif 959 #endif
960 }
960 961
961 #ifdef USE_X_TOOLKIT 962 #ifdef USE_X_TOOLKIT
962 963
963 static void 964 static void
964 dispatch_dummy_expose (w, x, y) 965 dispatch_dummy_expose (w, x, y)
2098 staticpro (&menu_items); 2099 staticpro (&menu_items);
2099 menu_items = Qnil; 2100 menu_items = Qnil;
2100 2101
2101 popup_id_tick = (1<<16); 2102 popup_id_tick = (1<<16);
2102 defsubr (&Sx_popup_menu); 2103 defsubr (&Sx_popup_menu);
2103 #ifdef USE_X_TOOLKIT
2104 defsubr (&Sx_popup_dialog); 2104 defsubr (&Sx_popup_dialog);
2105 #endif 2105 }
2106 }