Mercurial > emacs
changeset 35566:5b94bf04d78b
(Fx_file_dialog): Remove a workaround for Lesstif
which doesn't seem necessary anymore with Lesstif 0.92.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 25 Jan 2001 15:39:26 +0000 |
parents | 9a56f039a37a |
children | 2a17c00d1b45 |
files | src/xfns.c |
diffstat | 1 files changed, 0 insertions(+), 28 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xfns.c Thu Jan 25 15:37:21 2001 +0000 +++ b/src/xfns.c Thu Jan 25 15:39:26 2001 +0000 @@ -11084,39 +11084,11 @@ XmListSetPos (list, item_pos); } -#ifdef HAVE_MOTIF_2_1 - /* Process events until the user presses Cancel or OK. */ result = 0; while (result == 0 || XtAppPending (Xt_app_con)) XtAppProcessEvent (Xt_app_con, XtIMAll); -#else /* not HAVE_MOTIF_2_1 */ - - /* Process all events until the user presses Cancel or OK. */ - for (result = 0; result == 0;) - { - XEvent event; - Widget widget, parent; - - XtAppNextEvent (Xt_app_con, &event); - - /* See if the receiver of the event is one of the widgets of - the file selection dialog. If so, dispatch it. If not, - discard it. */ - widget = XtWindowToWidget (event.xany.display, event.xany.window); - parent = widget; - while (parent && parent != dialog) - parent = XtParent (parent); - - if (parent == dialog - || (event.type == Expose - && !process_expose_from_menu (event))) - XtDispatchEvent (&event); - } - -#endif /* not HAVE_MOTIF_2_1 */ - /* Get the result. */ if (result == XmCR_OK) {