Richard M. Stallman
e33c22a563
(digest_single_submenu): When pane_string is empty, do initialize save_wv.
2006-02-19 23:41:31 +00:00
Thien-Thi Nguyen
aaef169dc6
Update years in copyright notice; nfc.
2006-02-06 15:23:23 +00:00
Richard M. Stallman
d130d1298b
(xmenu_show): Call inhibit_garbage_collection.
2005-12-22 23:30:36 +00:00
Juri Linkov
76a3c2cda5
(Fx_popup_menu): Set Vmenu_updating_frame to f if
...
position is non-nil, else set it to nil.
2005-12-20 21:37:36 +00:00
Jan Djärv
b79c8219e8
* xmenu.c (menubar_selection_callback): Do nothing if the callback
...
is for an unselected radio menu item.
2005-12-12 08:08:43 +00:00
Thien-Thi Nguyen
0b5538bd85
Update years in copyright notice; nfc.
2005-08-07 12:33:19 +00:00
Lute Kamstra
4fc5845fe8
Update FSF's address.
2005-07-04 16:49:24 +00:00
Kim F. Storm
89f2614d96
* composite.c (compose_chars_in_text):
...
* 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.
2005-06-08 22:33:36 +00:00
Richard M. Stallman
1ca1f3f6c9
(popup_get_selection): Undo previous change.
2005-06-06 12:56:53 +00:00
Richard M. Stallman
196ac78ce1
(popup_get_selection): Click not in menu deactivates menu.
2005-06-04 18:09:16 +00:00
Nick Roberts
6a040d6a2c
(Fx_popup_dialog): Add a third boolean argument to
...
select frame title ("Question"/"Information").
(xdialog_show): Use it.
2005-05-24 03:45:42 +00:00
Richard M. Stallman
8faf605706
Don't include signal.h.
2005-05-10 09:18:02 +00:00
Luc Teirlinck
c05fe5d549
(Fx_popup_menu, Fx_popup_dialog): Doc fixes.
2005-05-05 22:31:36 +00:00
Luc Teirlinck
e3fbac653d
(Fx_popup_menu): Doc fix.
2005-05-02 01:39:30 +00:00
Richard M. Stallman
be6ed24aba
[not HAVE_X_TOOLKIT] (xmenu_show):
...
If user cancels the menu, quit unless FOR_CLICK.
2005-05-01 18:49:28 +00:00
Thien-Thi Nguyen
999cdb8fc7
(Fx_popup_menu): Initialize error_name to NULL.
2005-04-18 09:41:15 +00:00
Thien-Thi Nguyen
59cfb104f6
Remove eol whitespace; nfc.
2005-04-18 09:36:06 +00:00
Jan Djärv
ff18668fa0
* xmenu.c (create_and_show_popup_menu): Just remove menu and return
...
if it failed to pop up (Gnome "show pointer on ctrl" option makes
menus fail to pop up).
2005-03-24 18:53:43 +00:00
Stefan Monnier
b64b78ccfc
(ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
2005-03-17 01:37:31 +00:00
Stefan Monnier
8af9fa555a
(ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
...
(list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
(digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
2005-03-12 23:29:04 +00:00
Jan Djärv
96ff33d606
Forgot to remove debug code.
2005-02-03 19:57:33 +00:00
Jan Djärv
81f098775c
* xmenu.c (menubar_selection_callback): Force out GTK buffered
...
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.
2005-02-03 19:49:43 +00:00
Jan Djärv
9b85e63d34
* xmenu.c (create_and_show_popup_menu): Pass zero as button to
...
gtk_menu_popup if not for_click, so callbacks for the menu are called.
2005-01-07 20:50:46 +00:00
Jan Djärv
95bdef2ed4
(popup_get_selection): Remove parameter down_on_keypress.
...
(create_and_show_popup_menu, create_and_show_dialog): Remove
parameter down_on_keypress to popup_get_selection.
2004-12-27 20:56:56 +00:00
Jan Djärv
33385c6fa0
* xmenu.c (popup_get_selection): Only pop down dialogs
...
on C-g and Escape.
2004-12-27 20:34:03 +00:00
Richard M. Stallman
c0b0f54b8c
Indentation fix.
2004-12-27 15:58:25 +00:00
Jan Djärv
9f6fcdc516
* xmenu.c (popup_get_selection): Pop down on C-g.
...
(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.
2004-12-27 15:24:12 +00:00
Jan Djärv
453a4f1b8a
* xmenu.c (Fx_popup_menu): Correct documentation about position.
...
(xmenu_show): Do not call XTranslateCoordinates. Adjust position
if not given by a mouse click to correspond with x-popup-menu
documentation.
2004-12-07 13:11:59 +00:00
Jan Djärv
5ae53dcfca
* xmenu.c (x_menu_in_use): Removed.
...
(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.
2004-11-16 20:52:32 +00:00
Jan Djärv
234abfce95
Removed fprintf
2004-11-14 10:59:31 +00:00
Jan Djärv
a130b9017f
* xmenu.c (pop_down_menu): Remove global variable current_menu,
...
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.
2004-11-14 10:55:45 +00:00
Jan Djärv
b393528900
* xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
...
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.
2004-11-13 23:29:11 +00:00
Jan Djärv
af89e87102
* xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
...
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.
2004-11-13 20:18:21 +00:00
Kim F. Storm
b9de078aa6
(pop_down_menu): Return nil.
2004-11-12 13:47:13 +00:00
Jan Djärv
f1d1cd24db
(pop_down_menu): New function.
...
(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.
2004-11-12 10:34:36 +00:00
Jan Djärv
df00f4364c
(popup_widget_loop): Add argument do_timers.
...
(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.
2004-11-12 09:36:55 +00:00
Jan Djärv
c3438661cb
* xmenu.c (x_menu_wait_for_event): New function.
...
(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.
2004-11-12 08:33:51 +00:00
Jan Djärv
df470e3b0b
* eval.c (Feval): Remove check for INPUT_BLOCKED_P.
...
* xmenu.c (popup_get_selection, create_and_show_popup_menu)
(create_and_show_dialog): Revert change from 2004-10-31.
2004-11-06 07:47:27 +00:00
Richard M. Stallman
89bf74f828
Comment change.
2004-11-04 10:04:16 +00:00
Jan Djärv
495ef86be2
* xmenu.c: Add prototypes for forward function declarations.
...
(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.
2004-10-31 15:29:04 +00:00
Stefan Monnier
1806714ad8
(update_submenu_strings): YAILOM.
...
(set_frame_menubar): Make sure last_i is initialized.
2004-09-07 05:52:52 +00:00
Jan Djärv
5560d460b3
Fix typo in comment string.
2004-08-30 20:31:09 +00:00
Jan Djärv
ec86779779
Don't call ENCODE_MENU_STRING on top level menu names, GC may occur.
2004-08-30 20:14:21 +00:00
Jan Djärv
2bf436c3bb
* xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
...
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.
2004-08-30 19:42:53 +00:00
Jan Djärv
059cd32943
* xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
...
from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
2004-08-27 16:57:36 +00:00
Jan Djärv
66070bd113
* xmenu.c (popup_get_selection): Check new parameter down_on_keypress
...
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.
2004-01-12 01:46:49 +00:00
Jan Djärv
160b1b50f9
* xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
...
specified.
2004-01-08 21:04:32 +00:00
Kim F. Storm
9fc63a8939
(show_help_event): Remove unused code.
2003-12-27 22:24:01 +00:00
Jan Djärv
810f2256ba
Implement multiple display handling for GTK.
2003-11-16 16:05:24 +00:00
Jan Djärv
da18b5acc8
Remove tear off capability for GTK popup menus.
...
Since the context in Lisp is not present anymore, we don't know
how to invoke the action for a menu item.
2003-11-02 16:47:32 +00:00