diff options
| author | Gerd Moellmann | 2000-06-22 22:05:55 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-06-22 22:05:55 +0000 |
| commit | 0310009802741e7ef15822d496ddf44472ecd601 (patch) | |
| tree | 04cc222fe83ab07d9a905381b1984b23d35118e6 /src | |
| parent | 06bbf618699ec5166f4924ed2d0f2e06e2984c5d (diff) | |
| download | emacs-0310009802741e7ef15822d496ddf44472ecd601.tar.gz emacs-0310009802741e7ef15822d496ddf44472ecd601.zip | |
(Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events
differently.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/xfns.c b/src/xfns.c index 8edbd66b160..3136c764bc4 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -10053,6 +10053,15 @@ selection dialog's entry field, if MUSTMATCH is non-nil.") | |||
| 10053 | XmListSetPos (list, item_pos); | 10053 | XmListSetPos (list, item_pos); |
| 10054 | } | 10054 | } |
| 10055 | 10055 | ||
| 10056 | #ifdef HAVE_MOTIF_2_1 | ||
| 10057 | |||
| 10058 | /* Process events until the user presses Cancel or OK. */ | ||
| 10059 | result = 0; | ||
| 10060 | while (result == 0 || XtAppPending (Xt_app_con)) | ||
| 10061 | XtAppProcessEvent (Xt_app_con, XtIMAll); | ||
| 10062 | |||
| 10063 | #else /* not HAVE_MOTIF_2_1 */ | ||
| 10064 | |||
| 10056 | /* Process all events until the user presses Cancel or OK. */ | 10065 | /* Process all events until the user presses Cancel or OK. */ |
| 10057 | for (result = 0; result == 0;) | 10066 | for (result = 0; result == 0;) |
| 10058 | { | 10067 | { |
| @@ -10068,13 +10077,15 @@ selection dialog's entry field, if MUSTMATCH is non-nil.") | |||
| 10068 | parent = widget; | 10077 | parent = widget; |
| 10069 | while (parent && parent != dialog) | 10078 | while (parent && parent != dialog) |
| 10070 | parent = XtParent (parent); | 10079 | parent = XtParent (parent); |
| 10071 | 10080 | ||
| 10072 | if (parent == dialog | 10081 | if (parent == dialog |
| 10073 | || (event.type == Expose | 10082 | || (event.type == Expose |
| 10074 | && !process_expose_from_menu (event))) | 10083 | && !process_expose_from_menu (event))) |
| 10075 | XtDispatchEvent (&event); | 10084 | XtDispatchEvent (&event); |
| 10076 | } | 10085 | } |
| 10077 | 10086 | ||
| 10087 | #endif /* not HAVE_MOTIF_2_1 */ | ||
| 10088 | |||
| 10078 | /* Get the result. */ | 10089 | /* Get the result. */ |
| 10079 | if (result == XmCR_OK) | 10090 | if (result == XmCR_OK) |
| 10080 | { | 10091 | { |