Mercurial > emacs
comparison src/xmenu.c @ 109179:8cfee7d2955f
Convert DEFUNs to standard C.
* src/alloc.c: Convert DEFUNs to standard C.
* src/buffer.c:
* src/bytecode.c:
* src/callint.c:
* src/callproc.c:
* src/casefiddle.c:
* src/casetab.c:
* src/category.c:
* src/character.c:
* src/charset.c:
* src/chartab.c:
* src/cmds.c:
* src/coding.c:
* src/composite.c:
* src/data.c:
* src/dbusbind.c:
* src/dired.c:
* src/dispnew.c:
* src/doc.c:
* src/dosfns.c:
* src/editfns.c:
* src/emacs.c:
* src/eval.c:
* src/fileio.c:
* src/filelock.c:
* src/floatfns.c:
* src/fns.c:
* src/font.c:
* src/fontset.c:
* src/frame.c:
* src/fringe.c:
* src/image.c:
* src/indent.c:
* src/insdel.c:
* src/keyboard.c:
* src/keymap.c:
* src/lread.c:
* src/macros.c:
* src/marker.c:
* src/menu.c:
* src/minibuf.c:
* src/msdos.c:
* src/nsfns.m:
* src/nsmenu.m:
* src/nsselect.m:
* src/print.c:
* src/process.c:
* src/search.c:
* src/sound.c:
* src/syntax.c:
* src/term.c:
* src/terminal.c:
* src/textprop.c:
* src/undo.c:
* src/w16select.c:
* src/w32console.c:
* src/w32fns.c:
* src/w32font.c:
* src/w32menu.c:
* src/w32proc.c:
* src/w32select.c:
* src/window.c:
* src/xdisp.c:
* src/xfaces.c:
* src/xfns.c:
* src/xmenu.c:
* src/xselect.c:
* src/xsettings.c:
* src/xsmfns.c: Likewise.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Thu, 08 Jul 2010 14:25:08 -0700 |
parents | 01e36ca71747 |
children | 04ae6087d3c0 |
comparison
equal
deleted
inserted
replaced
109178:53f8ebcd9a97 | 109179:8cfee7d2955f |
---|---|
258 otherwise it is "Question". | 258 otherwise it is "Question". |
259 | 259 |
260 If the user gets rid of the dialog box without making a valid choice, | 260 If the user gets rid of the dialog box without making a valid choice, |
261 for instance using the window manager, then this produces a quit and | 261 for instance using the window manager, then this produces a quit and |
262 `x-popup-dialog' does not return. */) | 262 `x-popup-dialog' does not return. */) |
263 (position, contents, header) | 263 (Lisp_Object position, Lisp_Object contents, Lisp_Object header) |
264 Lisp_Object position, contents, header; | |
265 { | 264 { |
266 FRAME_PTR f = NULL; | 265 FRAME_PTR f = NULL; |
267 Lisp_Object window; | 266 Lisp_Object window; |
268 | 267 |
269 check_x (); | 268 check_x (); |
516 This initially opens the first menu bar item and you can then navigate with the | 515 This initially opens the first menu bar item and you can then navigate with the |
517 arrow keys, select a menu entry with the return key or cancel with the | 516 arrow keys, select a menu entry with the return key or cancel with the |
518 escape key. If FRAME has no menu bar this function does nothing. | 517 escape key. If FRAME has no menu bar this function does nothing. |
519 | 518 |
520 If FRAME is nil or not given, use the selected frame. */) | 519 If FRAME is nil or not given, use the selected frame. */) |
521 (frame) | 520 (Lisp_Object frame) |
522 Lisp_Object frame; | |
523 { | 521 { |
524 XEvent ev; | 522 XEvent ev; |
525 FRAME_PTR f = check_x_frame (frame); | 523 FRAME_PTR f = check_x_frame (frame); |
526 Widget menubar; | 524 Widget menubar; |
527 BLOCK_INPUT; | 525 BLOCK_INPUT; |
595 This initially opens the first menu bar item and you can then navigate with the | 593 This initially opens the first menu bar item and you can then navigate with the |
596 arrow keys, select a menu entry with the return key or cancel with the | 594 arrow keys, select a menu entry with the return key or cancel with the |
597 escape key. If FRAME has no menu bar this function does nothing. | 595 escape key. If FRAME has no menu bar this function does nothing. |
598 | 596 |
599 If FRAME is nil or not given, use the selected frame. */) | 597 If FRAME is nil or not given, use the selected frame. */) |
600 (frame) | 598 (Lisp_Object frame) |
601 Lisp_Object frame; | |
602 { | 599 { |
603 GtkWidget *menubar; | 600 GtkWidget *menubar; |
604 FRAME_PTR f; | 601 FRAME_PTR f; |
605 | 602 |
606 /* gcc 2.95 doesn't accept the FRAME_PTR declaration after | 603 /* gcc 2.95 doesn't accept the FRAME_PTR declaration after |
2624 | 2621 |
2625 /* The following is used by delayed window autoselection. */ | 2622 /* The following is used by delayed window autoselection. */ |
2626 | 2623 |
2627 DEFUN ("menu-or-popup-active-p", Fmenu_or_popup_active_p, Smenu_or_popup_active_p, 0, 0, 0, | 2624 DEFUN ("menu-or-popup-active-p", Fmenu_or_popup_active_p, Smenu_or_popup_active_p, 0, 0, 0, |
2628 doc: /* Return t if a menu or popup dialog is active. */) | 2625 doc: /* Return t if a menu or popup dialog is active. */) |
2629 () | 2626 (void) |
2630 { | 2627 { |
2631 #ifdef HAVE_MENUS | 2628 #ifdef HAVE_MENUS |
2632 return (popup_activated ()) ? Qt : Qnil; | 2629 return (popup_activated ()) ? Qt : Qnil; |
2633 #else | 2630 #else |
2634 return Qnil; | 2631 return Qnil; |