EXTL_SAFE EXTL_EXPORT_MEMBER void groupws_set_initial_outputs(WGroupWS *ws, ExtlTab tab) { extl_unref_table(ws->initial_outputs); ws->initial_outputs=extl_ref_table(tab); }
/*EXTL_DOC * Define a substyle. */ EXTL_SAFE EXTL_EXPORT ExtlTab de_substyle(const char *pattern, ExtlTab tab) { extl_table_sets_s(tab, "substyle_pattern", pattern); return extl_ref_table(tab); }
/*EXTL_DOC * Get configuration table for module \var{name} */ EXTL_EXPORT ExtlTab statusd_get_config(const char *name) { if(name==NULL){ return extl_ref_table(configtab); }else{ ExtlTab t; if(extl_table_gets_t(configtab, name, &t)) return t; else return extl_create_table(); } }
EXTL_SAFE EXTL_EXPORT_MEMBER ExtlTab groupws_get_initial_outputs(WGroupWS *ws) { return extl_ref_table(ws->initial_outputs); }
bool menu_init(WMenu *menu, WWindow *par, const WFitParams *fp, const WMenuCreateParams *params) { Window win; int i; menu->entries=preprocess_menu(params->tab, &(menu->n_entries)); if(menu->entries==NULL){ warn(TR("Empty menu.")); return FALSE; } menu->tab=extl_ref_table(params->tab); menu->handler=extl_ref_fn(params->handler); menu->pmenu_mode=params->pmenu_mode; menu->big_mode=params->big_mode; /*menu->cycle_bindmap=NULL;*/ menu->last_fp=*fp; if(params->pmenu_mode){ menu->selected_entry=-1; }else{ menu->selected_entry=params->initial-1; if(menu->selected_entry<0) menu->selected_entry=0; if(params->initial > menu->n_entries) menu->selected_entry=0; } menu->max_entry_w=0; menu->entry_h=0; menu->brush=NULL; menu->entry_brush=NULL; menu->entry_spacing=0; menu->vis_entries=menu->n_entries; menu->first_entry=0; menu->submenu=NULL; menu->typeahead=NULL; menu->gm_kcb=0; menu->gm_state=0; if(!window_init((WWindow*)menu, par, fp)) goto fail; win=menu->win.win; if(!menu_init_gr(menu, region_rootwin_of((WRegion*)par), win)) goto fail2; init_attr(); menu_firstfit(menu, params->submenu_mode, &(params->refg)); window_select_input(&(menu->win), IONCORE_EVENTMASK_NORMAL); region_add_bindmap((WRegion*)menu, mod_menu_menu_bindmap); region_register((WRegion*)menu); return TRUE; fail2: window_deinit((WWindow*)menu); fail: extl_unref_table(menu->tab); extl_unref_fn(menu->handler); deinit_entries(menu); return FALSE; }