aboutsummaryrefslogtreecommitdiffstats
path: root/src/xmenu.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (Fx_popup_menu): Initialize selection.Andreas Schwab2006-11-191-1/+1
|
* (popup_activated): Define outside HAVE_MENUS.Chong Yidong2006-11-121-8/+7
|
* (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.Chong Yidong2006-11-061-10/+15
| | | | Return nil if building without menus.
* Add a comment.Chong Yidong2006-11-051-0/+3
|
* (Fmenu_or_popup_active_p): New function.Eli Zaretskii2006-11-051-0/+10
| | | | (syms_of_xmenu): Defsubr it.
* * xmenu.c (Fmenu_bar_open): Declare variable before BLOCK_INPUT toChong Yidong2006-11-041-1/+3
| | | | avoid gcc 2.95 error.
* (syms_of_xmenu): Use Ffset rather than Fdefalias, sinceStefan Monnier2006-10-101-2/+1
| | | | Fdefalias is not declared in any *.h file.
* * xterm.c (x_initialize): Don't install Xt event timer here.Chong Yidong2006-09-131-0/+9
| | | | | | | | | | | (x_timeout_atimer_activated_flag): New var. (x_activate_timeout_atimer): New function to install Xt timer. (x_send_scroll_bar_event, x_process_timeouts): Use it. * xmenu.c (x_menu_set_in_use, popup_activate_callback) (create_and_show_popup_menu, create_and_show_dialog): Use it. * xterm.h (x_activate_timeout_atimer): prototype.
* (Vmenu_updating_frame): Don't define here.Richard M. Stallman2006-09-091-7/+2
| | | | (syms_of_xmenu): Don't DEFVAR it here.
* * xmenu.c (syms_of_xmenu): Make accelerate-menu an alias forJan Djärv2006-06-011-0/+2
| | | | menu-bar-open.
* * xmenu.c (Fmenu_bar_open, syms_of_xmenu): Change menu-bar-start toJan Djärv2006-06-011-3/+3
| | | | menu-bar-open.
* (Fmenu_bar_start): Return a value.Andreas Schwab2006-05-301-0/+2
|
* (Fmenu_bar_start): New function for USE_GTK and USE_X_TOOLKIT.Jan Djärv2006-05-291-0/+113
|
* (restore_menu_items): Return a value.Andreas Schwab2006-05-011-0/+1
|
* Comment changes.Richard M. Stallman2006-04-181-0/+6
|
* (restore_menu_items, save_menu_items): New fns.Richard M. Stallman2006-04-181-8/+52
| | | | | | | | (set_frame_menubar): Use save_menu_items. Save updated vector in the frame before unwinding it. Don't use unuse_menu_items. Don't use discard_menu_items. (digest_single_submenu): Abort if an item is not in a pane. (init_menu_items): Put the error check at the top.
* (digest_single_submenu): When pane_string is empty, do initialize save_wv.Richard M. Stallman2006-02-191-1/+4
|
* Update years in copyright notice; nfc.Thien-Thi Nguyen2006-02-061-1/+1
|
* (xmenu_show): Call inhibit_garbage_collection.Richard M. Stallman2005-12-221-0/+5
|
* (Fx_popup_menu): Set Vmenu_updating_frame to f ifJuri Linkov2005-12-201-1/+4
| | | | position is non-nil, else set it to nil.
* * xmenu.c (menubar_selection_callback): Do nothing if the callbackJan Djärv2005-12-121-2/+11
| | | | is for an unselected radio menu item.
* Update years in copyright notice; nfc.Thien-Thi Nguyen2005-08-071-2/+2
|
* Update FSF's address.Lute Kamstra2005-07-041-2/+2
|
* * composite.c (compose_chars_in_text):Kim F. Storm2005-06-081-1/+1
| | | | | | | | | | | * eval.c (do_autoload): * macmenu.c (set_frame_menubar): * process.c (read_process_output, exec_sentinel): * xmenu.c (set_frame_menubar): * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar): * w32menu.c (set_frame_menubar): Use record_unwind_save_match_data. Rename restore_match_data to restore_search_regs.
* (popup_get_selection): Undo previous change.Richard M. Stallman2005-06-061-4/+0
|
* (popup_get_selection): Click not in menu deactivates menu.Richard M. Stallman2005-06-041-0/+4
|
* (Fx_popup_dialog): Add a third boolean argument toNick Roberts2005-05-241-17/+29
| | | | | select frame title ("Question"/"Information"). (xdialog_show): Use it.
* Don't include signal.h.Richard M. Stallman2005-05-101-0/+2
|
* (Fx_popup_menu, Fx_popup_dialog): Doc fixes.Luc Teirlinck2005-05-051-2/+13
|
* (Fx_popup_menu): Doc fix.Luc Teirlinck2005-05-021-3/+6
|
* [not HAVE_X_TOOLKIT] (xmenu_show):Richard M. Stallman2005-05-011-2/+5
| | | | If user cancels the menu, quit unless FOR_CLICK.
* (Fx_popup_menu): Initialize error_name to NULL.Thien-Thi Nguyen2005-04-181-1/+1
|
* Remove eol whitespace; nfc.Thien-Thi Nguyen2005-04-181-4/+4
|
* * xmenu.c (create_and_show_popup_menu): Just remove menu and returnJan Djärv2005-03-241-5/+8
| | | | | if it failed to pop up (Gnome "show pointer on ctrl" option makes menus fail to pop up).
* (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.Stefan Monnier2005-03-171-0/+2
|
* (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.Stefan Monnier2005-03-121-24/+19
| | | | | (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR. (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
* Forgot to remove debug code.Jan Djärv2005-02-031-2/+0
|
* * xmenu.c (menubar_selection_callback): Force out GTK bufferedJan Djärv2005-02-031-3/+16
| | | | | | events so the menu event comes after them. This is to prevent sit-for from exiting on buffered events directly after a menu selection, lisp code for Help => About Emacs uses sit-for.
* * xmenu.c (create_and_show_popup_menu): Pass zero as button toJan Djärv2005-01-071-5/+9
| | | | gtk_menu_popup if not for_click, so callbacks for the menu are called.
* (popup_get_selection): Remove parameter down_on_keypress.Jan Djärv2004-12-271-8/+4
| | | | | (create_and_show_popup_menu, create_and_show_dialog): Remove parameter down_on_keypress to popup_get_selection.
* * xmenu.c (popup_get_selection): Only pop down dialogsJan Djärv2004-12-271-12/+3
| | | | on C-g and Escape.
* Indentation fix.Richard M. Stallman2004-12-271-1/+1
|
* * xmenu.c (popup_get_selection): Pop down on C-g.Jan Djärv2004-12-271-0/+20
| | | | | | | | | | | | | | (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that pops down menu on C-g. (xdialog_show): If dialog popped down and no button in the dialog was pushed, call Fsignal to quit. (xmenu_show): In no toolkit version, if menu returns NO_SELECT call Fsignal to quit. * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g. * gtkutil.c (xg_initialize): Install bindings for C-g so that dialogs and menus pop down.
* * xmenu.c (Fx_popup_menu): Correct documentation about position.Jan Djärv2004-12-071-29/+19
| | | | | | (xmenu_show): Do not call XTranslateCoordinates. Adjust position if not given by a mouse click to correspond with x-popup-menu documentation.
* * xmenu.c (x_menu_in_use): Removed.Jan Djärv2004-11-161-8/+1
| | | | | | | | | (x_menu_set_in_use): Also set popup_activated_flag. * xfns.c (Fx_file_dialog): Call popup_activated instead of x_menu_in_use. Call x_menu_set_in_use in Motif version also. * xterm.h: (x_menu_in_use): Removed.
* Removed fprintfJan Djärv2004-11-141-1/+0
|
* * xmenu.c (pop_down_menu): Remove global variable current_menu,Jan Djärv2004-11-141-31/+24
| | | | | | | extract pointer from arg with XSAVE_VALUE. (create_and_show_popup_menu, create_and_show_dialog, xmenu_show): Construct arg to record_unwind_protect with make_save_value.
* * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.Jan Djärv2004-11-131-1/+18
| | | | | | | | | Record unwind with clean_up_file_dialog. * xterm.h: Declare x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event. * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
* * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of typeJan Djärv2004-11-131-80/+105
| | | | | | | | | | | | | Lisp_Object. (popup_get_selection): Move unwind protect ... (create_and_show_popup_menu, create_and_show_dialog): ... to here. Move destroy of widget to pop_down_menu. (popup_widget_loop): Move unwind protect ... (create_and_show_popup_menu, create_and_show_dialog): ... to here. Move destroy of widget to pop_down_menu. (pop_down_menu): BLOCK_INPUT and destroy widget/window. (xmenu_show): record unwind pop_down_menu. Move XMenuDestroy, x_mouse_leave and grabbed = 0 to pop_down_menu.
* (pop_down_menu): Return nil.Kim F. Storm2004-11-121-3/+5
|