Lines Matching defs:menu
35 * Create and destroy menu items *
36 * Set and get marker string for menu *
39 #include "menu.priv.h"
160 | E_CONNECTED - item is still connected to a menu
180 | Function : int set_menu_mark( MENU *menu, const char *mark )
183 | item (single-valued menu) or the selected items
184 | (multi-valued menu).
188 | affect the geometry of the menu, which we don't allow
196 set_menu_mark(MENU * menu, const char *mark)
200 T((T_CALLED("set_menu_mark(%p,%s)"), (void *)menu, _nc_visbuf(mark)));
207 if (menu)
209 char *old_mark = menu->mark;
210 unsigned short old_status = menu->status;
212 if (menu->status & _POSTED)
214 /* If the menu is already posted, the geometry is fixed. Then
216 if (menu->marklen != l)
219 menu->marklen = l;
222 menu->mark = strdup(mark);
223 if (menu->mark)
225 if (menu != &_nc_Default_Menu)
226 SetStatus(menu, _MARK_ALLOCATED);
230 menu->mark = old_mark;
231 menu->marklen = (short)((old_mark != 0) ? strlen(old_mark) : 0);
236 menu->mark = (char *)0;
241 if (menu->status & _POSTED)
243 _nc_Draw_Menu(menu);
244 _nc_Show_Menu(menu);
249 _nc_Calculate_Item_Length_and_Width(menu);
261 | Function : char *menu_mark(const MENU *menu)
268 menu_mark(const MENU * menu)
270 T((T_CALLED("menu_mark(%p)"), (const void *)menu));
271 returnPtr(Normalize_Menu(menu)->mark);