diff options
| author | Gerd Moellmann | 2001-01-25 15:39:26 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-01-25 15:39:26 +0000 |
| commit | b17a50b7b4c0f93ac4bd2efde493a359a5a856f0 (patch) | |
| tree | c981e2a63814ce0510d9acc446eb0c5f8c6c8f8e /src | |
| parent | f0c1adabcb756404ddaeac75c94f72c87a055a5f (diff) | |
| download | emacs-b17a50b7b4c0f93ac4bd2efde493a359a5a856f0.tar.gz emacs-b17a50b7b4c0f93ac4bd2efde493a359a5a856f0.zip | |
(Fx_file_dialog): Remove a workaround for Lesstif
which doesn't seem necessary anymore with Lesstif 0.92.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/xfns.c b/src/xfns.c index d3de60f7e6d..8c9ded0588e 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -11084,39 +11084,11 @@ selection dialog's entry field, if MUSTMATCH is non-nil.") | |||
| 11084 | XmListSetPos (list, item_pos); | 11084 | XmListSetPos (list, item_pos); |
| 11085 | } | 11085 | } |
| 11086 | 11086 | ||
| 11087 | #ifdef HAVE_MOTIF_2_1 | ||
| 11088 | |||
| 11089 | /* Process events until the user presses Cancel or OK. */ | 11087 | /* Process events until the user presses Cancel or OK. */ |
| 11090 | result = 0; | 11088 | result = 0; |
| 11091 | while (result == 0 || XtAppPending (Xt_app_con)) | 11089 | while (result == 0 || XtAppPending (Xt_app_con)) |
| 11092 | XtAppProcessEvent (Xt_app_con, XtIMAll); | 11090 | XtAppProcessEvent (Xt_app_con, XtIMAll); |
| 11093 | 11091 | ||
| 11094 | #else /* not HAVE_MOTIF_2_1 */ | ||
| 11095 | |||
| 11096 | /* Process all events until the user presses Cancel or OK. */ | ||
| 11097 | for (result = 0; result == 0;) | ||
| 11098 | { | ||
| 11099 | XEvent event; | ||
| 11100 | Widget widget, parent; | ||
| 11101 | |||
| 11102 | XtAppNextEvent (Xt_app_con, &event); | ||
| 11103 | |||
| 11104 | /* See if the receiver of the event is one of the widgets of | ||
| 11105 | the file selection dialog. If so, dispatch it. If not, | ||
| 11106 | discard it. */ | ||
| 11107 | widget = XtWindowToWidget (event.xany.display, event.xany.window); | ||
| 11108 | parent = widget; | ||
| 11109 | while (parent && parent != dialog) | ||
| 11110 | parent = XtParent (parent); | ||
| 11111 | |||
| 11112 | if (parent == dialog | ||
| 11113 | || (event.type == Expose | ||
| 11114 | && !process_expose_from_menu (event))) | ||
| 11115 | XtDispatchEvent (&event); | ||
| 11116 | } | ||
| 11117 | |||
| 11118 | #endif /* not HAVE_MOTIF_2_1 */ | ||
| 11119 | |||
| 11120 | /* Get the result. */ | 11092 | /* Get the result. */ |
| 11121 | if (result == XmCR_OK) | 11093 | if (result == XmCR_OK) |
| 11122 | { | 11094 | { |