1118 |
|
|
1119 |
#ifndef MSDOS |
#ifndef MSDOS |
1120 |
|
|
1121 |
|
/* Return non-zero if a dialog or popup menu is already popped up. */ |
1122 |
|
|
1123 |
|
int |
1124 |
|
x_menu_in_use () |
1125 |
|
{ |
1126 |
|
return ! NILP (menu_items_inuse); |
1127 |
|
} |
1128 |
|
|
1129 |
|
/* Set menu_items_inuse so no other popup menu or dialog is created. */ |
1130 |
|
|
1131 |
|
void |
1132 |
|
x_menu_set_in_use (in_use) |
1133 |
|
int in_use; |
1134 |
|
{ |
1135 |
|
menu_items_inuse = in_use ? Qt : Qnil; |
1136 |
|
} |
1137 |
|
|
1138 |
/* Wait for an X event to arrive or for a timer to expire. */ |
/* Wait for an X event to arrive or for a timer to expire. */ |
1139 |
|
|
1140 |
static void |
void |
1141 |
x_menu_wait_for_event (void *data) |
x_menu_wait_for_event (void *data) |
1142 |
{ |
{ |
1143 |
extern EMACS_TIME timer_check P_ ((int)); |
extern EMACS_TIME timer_check P_ ((int)); |