static void handleLoadSymbols( WMenuEditInfo *einfo ) { char *file; file = WLoadSymbols( &einfo->info->symbol_table, einfo->info->symbol_file, einfo->win, TRUE ); if( file == NULL ) { return; } if( einfo->info->symbol_file != NULL ) { WMemFree( einfo->info->symbol_file ); } einfo->info->symbol_file = file; // lookup the id associated with the symbol for all entries WResolveMenuSymIDs( einfo ); // look for the symbol matching the id for all entries WResolveMenuEntries( einfo ); WRAddSymbolsToComboBox( einfo->info->symbol_table, einfo->edit_dlg, IDM_MENUEDID, WR_HASHENTRY_ALL ); einfo->info->modified = TRUE; WDoHandleSelChange( einfo, FALSE, TRUE ); }
static void handleLoadSymbols( WAccelEditInfo *einfo ) { char *file; file = WLoadSymbols( &einfo->info->symbol_table, einfo->info->symbol_file, einfo->win, TRUE ); if( file == NULL ) { return; } if( einfo->info->symbol_file != NULL ) { WRMemFree( einfo->info->symbol_file ); } einfo->info->symbol_file = file; // lookup the id associated with the symbol for all entries WResolveAllEntrySymIDs( einfo ); // look for the symbol matching the id for all entries WResolveAllEntrySymbols( einfo ); WInitEditWindowListBox( einfo ); if( einfo->current_pos != -1 ) { SendDlgItemMessage( einfo->edit_dlg, IDM_ACCEDLIST, LB_SETCURSEL, einfo->current_pos, 0 ); } WRAddSymbolsToComboBox( einfo->info->symbol_table, einfo->edit_dlg, IDM_ACCEDCMDID, WR_HASHENTRY_ALL ); einfo->info->modified = true; WDoHandleSelChange( einfo, FALSE, TRUE ); }