diff options
| author | Paul Eggert | 2011-06-11 14:31:32 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-06-11 14:31:32 -0700 |
| commit | 4475bec4dd51b8da9884816d9ca06e4d60a35e15 (patch) | |
| tree | 1f300450eb2241ec23f1b2d43cde8d1284a45754 /src/xmenu.c | |
| parent | 6198ccd0b2e8cebc14415e13765de6bb758ec786 (diff) | |
| download | emacs-4475bec4dd51b8da9884816d9ca06e4d60a35e15.tar.gz emacs-4475bec4dd51b8da9884816d9ca06e4d60a35e15.zip | |
* buffer.c (Qclone_number): Remove for now, as it's unused.
(record_buffer, Funrecord_buffer): Rename local to avoid shadowing.
(record_buffer): Remove unused local.
* frame.c (other_visible_frames, frame_buffer_list): Now static.
(set_frame_buffer_list): Remove; unused.
* frame.h (other_visible_frames): Remove decl.
* keyboard.h (menu_items_inuse): Declare only if USE_GTK || USE_MOTIF.
* lisp.h (frame_buffer_list, set_frame_buffer_list): Remove decls.
(add_gpm_wait_descriptor, delete_gpm_wait_descriptor): Declare only
if HAVE_GPM.
* menu.c (menu_items_inuse): Now static unless USE_GTK || USE_MOTIF.
* process.c (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
Define only if HAVE_GPM.
* widget.c (EmacsFrameResize, emacsFrameClassRec): Now static.
(update_hints_inhibit): Remove; never set. All uses removed.
* widgetprv.h (emacsFrameClassRec): Remove decl.
* window.c (delete_deletable_window): Now returns void, since it
wasn't returning anything.
(compare_window_configurations): Remove unused locals.
* xfns.c (x_set_scroll_bar_default_width): Remove unused locals.
* xmenu.c (x_menu_set_in_use): Define only if USE_GTK || USE_MOTIF.
Omit no-longer-needed #ifdef USE_X_TOOLKIT, since USE_X_TOOLKIT is
implied by USE_GTK || USE_MOTIF.
(dialog_selection_callback) [!USE_GTK]: Prefer intptr_t for integers
the same widths as pointers. This follows up on the 2011-05-06 patch.
* xterm.c (x_alloc_lighter_color_for_widget): Define only if USE_LUCID.
* xterm.h: Likewise.
(x_menu_set_in_use): Declare only if USE_GTK || USE_MOTIF.
Diffstat (limited to 'src/xmenu.c')
| -rw-r--r-- | src/xmenu.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index 7d7515a8f25..db1d8823a7e 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -347,6 +347,8 @@ for instance using the window manager, then this produces a quit and | |||
| 347 | 347 | ||
| 348 | #ifndef MSDOS | 348 | #ifndef MSDOS |
| 349 | 349 | ||
| 350 | #if defined USE_GTK || defined USE_MOTIF | ||
| 351 | |||
| 350 | /* Set menu_items_inuse so no other popup menu or dialog is created. */ | 352 | /* Set menu_items_inuse so no other popup menu or dialog is created. */ |
| 351 | 353 | ||
| 352 | void | 354 | void |
| @@ -354,12 +356,12 @@ x_menu_set_in_use (int in_use) | |||
| 354 | { | 356 | { |
| 355 | menu_items_inuse = in_use ? Qt : Qnil; | 357 | menu_items_inuse = in_use ? Qt : Qnil; |
| 356 | popup_activated_flag = in_use; | 358 | popup_activated_flag = in_use; |
| 357 | #ifdef USE_X_TOOLKIT | ||
| 358 | if (popup_activated_flag) | 359 | if (popup_activated_flag) |
| 359 | x_activate_timeout_atimer (); | 360 | x_activate_timeout_atimer (); |
| 360 | #endif | ||
| 361 | } | 361 | } |
| 362 | 362 | ||
| 363 | #endif | ||
| 364 | |||
| 363 | /* Wait for an X event to arrive or for a timer to expire. */ | 365 | /* Wait for an X event to arrive or for a timer to expire. */ |
| 364 | 366 | ||
| 365 | #ifndef USE_MOTIF | 367 | #ifndef USE_MOTIF |
| @@ -1919,9 +1921,9 @@ create_and_show_dialog (FRAME_PTR f, widget_value *first_wv) | |||
| 1919 | static void | 1921 | static void |
| 1920 | dialog_selection_callback (Widget widget, LWLIB_ID id, XtPointer client_data) | 1922 | dialog_selection_callback (Widget widget, LWLIB_ID id, XtPointer client_data) |
| 1921 | { | 1923 | { |
| 1922 | /* The EMACS_INT cast avoids a warning. There's no problem | 1924 | /* Treat the pointer as an integer. There's no problem |
| 1923 | as long as pointers have enough bits to hold small integers. */ | 1925 | as long as pointers have enough bits to hold small integers. */ |
| 1924 | if ((int) (EMACS_INT) client_data != -1) | 1926 | if ((intptr_t) client_data != -1) |
| 1925 | menu_item_selection = (Lisp_Object *) client_data; | 1927 | menu_item_selection = (Lisp_Object *) client_data; |
| 1926 | 1928 | ||
| 1927 | BLOCK_INPUT; | 1929 | BLOCK_INPUT; |