2483 |
if (FRAME_X_DISPLAY_INFO (f)->grabbed & (1 << i)) |
if (FRAME_X_DISPLAY_INFO (f)->grabbed & (1 << i)) |
2484 |
break; |
break; |
2485 |
} |
} |
2486 |
|
|
2487 |
/* Display the menu. */ |
/* Display the menu. */ |
2488 |
gtk_widget_show_all (menu); |
gtk_widget_show_all (menu); |
2489 |
gtk_menu_popup (GTK_MENU (menu), 0, 0, pos_func, &popup_x_y, i, 0); |
gtk_menu_popup (GTK_MENU (menu), 0, 0, pos_func, &popup_x_y, i, 0); |
2601 |
/* Display the menu. */ |
/* Display the menu. */ |
2602 |
lw_popup_menu (menu, (XEvent *) &dummy); |
lw_popup_menu (menu, (XEvent *) &dummy); |
2603 |
popup_activated_flag = 1; |
popup_activated_flag = 1; |
2604 |
|
|
2605 |
{ |
{ |
2606 |
int fact = 4 * sizeof (LWLIB_ID); |
int fact = 4 * sizeof (LWLIB_ID); |
2607 |
int specpdl_count = SPECPDL_INDEX (); |
int specpdl_count = SPECPDL_INDEX (); |
3225 |
{ |
{ |
3226 |
struct Lisp_Save_Value *p1 = XSAVE_VALUE (Fcar (arg)); |
struct Lisp_Save_Value *p1 = XSAVE_VALUE (Fcar (arg)); |
3227 |
struct Lisp_Save_Value *p2 = XSAVE_VALUE (Fcdr (arg)); |
struct Lisp_Save_Value *p2 = XSAVE_VALUE (Fcdr (arg)); |
3228 |
|
|
3229 |
FRAME_PTR f = p1->pointer; |
FRAME_PTR f = p1->pointer; |
3230 |
XMenu *menu = p2->pointer; |
XMenu *menu = p2->pointer; |
3231 |
|
|
3459 |
#ifndef MSDOS |
#ifndef MSDOS |
3460 |
XMenuActivateSetWaitFunction (x_menu_wait_for_event, FRAME_X_DISPLAY (f)); |
XMenuActivateSetWaitFunction (x_menu_wait_for_event, FRAME_X_DISPLAY (f)); |
3461 |
#endif |
#endif |
3462 |
|
|
3463 |
record_unwind_protect (pop_down_menu, |
record_unwind_protect (pop_down_menu, |
3464 |
Fcons (make_save_value (f, 0), |
Fcons (make_save_value (f, 0), |
3465 |
make_save_value (menu, 0))); |
make_save_value (menu, 0))); |