MCPcopy Create free account
hub / github.com/NetHack/NetHack / clear_old_menu

Function clear_old_menu

win/X11/winmenu.c:1452–1466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1450}
1451
1452static void
1453clear_old_menu(struct xwindow *wp)
1454{
1455 struct menu_info_t *menu_info = wp->menu_information;
1456
1457 free_menu(&menu_info->curr_menu);
1458 free_menu(&menu_info->new_menu);
1459
1460 if (menu_info->is_up) {
1461 nh_XtPopdown(wp->popup);
1462 menu_info->is_up = FALSE;
1463 XtDestroyWidget(wp->popup);
1464 wp->w = wp->popup = (Widget) 0;
1465 }
1466}
1467
1468void
1469create_menu_window(struct xwindow *wp)

Callers 1

destroy_menu_windowFunction · 0.85

Calls 2

free_menuFunction · 0.85
nh_XtPopdownFunction · 0.85

Tested by

no test coverage detected