| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
If user cancels the menu, quit unless FOR_CLICK.
|
| |
|
| |
|
|
|
|
|
| |
if it failed to pop up (Gnome "show pointer on ctrl" option makes
menus fail to pop up).
|
| |
|
|
|
|
|
| |
(list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
(digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
gtk_menu_popup if not for_click, so callbacks for the menu are called.
|
|
|
|
|
| |
(create_and_show_popup_menu, create_and_show_dialog): Remove
parameter down_on_keypress to popup_get_selection.
|
|
|
|
| |
on C-g and Escape.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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_show): Do not call XTranslateCoordinates. Adjust position
if not given by a mouse click to correspond with x-popup-menu
documentation.
|
|
|
|
|
|
|
|
|
| |
(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.
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
| |
(popup_get_selection, popup_widget_loop): Unwind protect to
pop_down_menu.
(popup_widget_loop): Add argument widget.
(create_and_show_popup_menu, create_and_show_dialog): Pass new
argument widget to popup_widget_loop.
|
|
|
|
|
|
|
| |
(create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
do_timers to popup_widget_loop.
(create_and_show_popup_menu): Pass 1 for do_timers to
popup_get_selection.
|
|
|
|
|
|
|
| |
(popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
to handle timers.
(xmenu_show): Call XMenuActivateSetWaitFunction so that
x_menu_wait_for_event is called by XMenuActivate.
|
|
|
|
|
| |
* xmenu.c (popup_get_selection, create_and_show_popup_menu)
(create_and_show_dialog): Revert change from 2004-10-31.
|
| |
|
|
|
|
|
|
|
| |
(popup_get_selection): Remove parameter do_timers, remove call to
timer_check.
(create_and_show_popup_menu, create_and_show_dialog): Remove
parameter do_timers from call to popup_get_selection.
|
|
|
|
| |
(set_frame_menubar): Make sure last_i is initialized.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
instead of name and key.
(update_submenu_strings): New function.
(set_frame_menubar): Remove call to inhibit_garbage_collection,
call update_submenu_strings. Call ENCODE_MENU_STRING for top level
menu names.
* gtkutil.h (_widget_value): Added lname and lkey.
|
|
|
|
| |
from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
|
|
|
|
|
|
|
|
|
| |
if a key press should pop down. Only pop down if a key is pressed
outside the menu/dialog.
(create_and_show_popup_menu): Pass 0 for down_on_keypress to
popup_get_selection.
(create_and_show_dialog): Pass 1 for down_on_keypress to
popup_get_selection.
|
|
|
|
| |
specified.
|
| |
|
| |
|
|
|
|
|
| |
Since the context in Lisp is not present anymore, we don't know
how to invoke the action for a menu item.
|
| |
|
|
|
|
| |
data to kbd_buffer_store_event.
|
|
|
|
|
| |
(list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
Use it.
|
|
|
|
| |
new macros in dispextern.h, frame.h and window.h.
|
|
|
|
| |
avoid warning.
|
|
|
|
|
| |
(single_keymap_panes): Use it and map_keymap.
(single_menu_item): Use skp as well.
|
|
|
|
|
| |
xmenu.c (menu_position_func): Adjust menu popup position so that
the menu is fully visible.
|
| |
|
| |
|
|
|
|
|
| |
(Fx_popup_menu): Call mouse_position_for_popup for X and
mouse_position_hook for others.
|
|
|
|
|
|
|
|
| |
call XQueryPointer to get coordinates.
(popup_get_selection): Do not set popup_activated_flag to zero,
let popup_deactivate_callback do that. Needed for Motif.
Call x_dispatch_event instead of XtDispatchEvent.
(xmenu_show): Calculate root coordinate from frame top/left position.
|
|
|
|
|
|
| |
string as pane name, if there is one.
(set_frame_menubar): Save menu_items_n_panes from each call to
parse_single_submenu and use it when calling digest_single_submenu.
|
|
|
|
|
|
|
|
|
|
|
| |
If it is non-nil, run timers. Use an unwind-protect to requeue
the events that were read ahead.
(popup_get_selection_unwind): New subroutine.
(popup_get_selection_queue): File-scope variable now holds that queue.
(xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
(xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
Use an unwind-protect to pop down the dialog box.
(xdialog_show_unwind): New subroutine implements that.
|