pinosaur
/
taskasaur.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor + man
[taskasaur.git]
/
menu.c
diff --git
a/menu.c
b/menu.c
index
d66ee07
..
96ad1e5
100644
(file)
--- a/
menu.c
+++ b/
menu.c
@@
-19,6
+19,7
@@
typedef struct MenuItem {
char* title;
char* description;
typedef struct MenuItem {
char* title;
char* description;
+ void* user_data;
} MenuItem;
typedef struct Menu {
} MenuItem;
typedef struct Menu {
@@
-32,6
+33,7
@@
typedef struct Menu {
WINDOW* sub_win;
int max_height;
int max_width;
WINDOW* sub_win;
int max_height;
int max_width;
+ void* user_data;
} Menu;
int swap_item(Menu* menu, int src_index, int dest_index);
} Menu;
int swap_item(Menu* menu, int src_index, int dest_index);
@@
-50,7
+52,7
@@
create_menuitem(char* title)
new_menuitem = malloc(sizeof(MenuItem));
new_menuitem->title = title;
new_menuitem = malloc(sizeof(MenuItem));
new_menuitem->title = title;
- new_menuitem->description =
0
; //TEMP FOR NOW
+ new_menuitem->description =
strdup("")
; //TEMP FOR NOW
return new_menuitem;
}
return new_menuitem;
}