ui/ncurses: Use pmenu_item destrutor to free ncurses ITEMs
[petitboot] / ui / twin / pbt-menu.h
index 7547f16a3c08800a5e0ebed822a97320f6c3500f..698b64d2852a0558d9f312820beb625eb8fb00ac 100644 (file)
@@ -19,7 +19,7 @@
 #define _PBT_MENU_H
 
 #include "list/list.h"
-#include "pb-protocol/pb-protocol.h"
+#include "types/types.h"
 
 #include "pbt-scr.h"
 
@@ -41,6 +41,7 @@ struct pbt_item
        twin_pixmap_t *pixmap_active;
 
        struct pbt_menu *sub_menu;
+       struct pbt_item *selected_item;
 
        int (*on_execute)(struct pbt_item *item);
        int (*on_edit)(struct pbt_item *item);